Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

How to execute a .bat file from within Sharepoint?

Hello Scripting Guys    Using Sharepoint 2010 created using the UI there exists some "Links" on a page.    Those links access other pages but there is a need for some of those links to run .bat files...

View Article


Moving users from One Group to another

Hi Guys,I am looking for a script which will allow me to move users from One ADGroup to another ADGroup. I have checked ther scripts which are currently present. However, none of them if fixing my...

View Article


Compare Groups

Hi,I need to compare ADgroups so that i Can check how many employees are there as per our Hr Data.:DThanks In Advance.

View Article

Split filename and create folders with Powershell script (

I have a folder with 1000's of files. Each file varies in length; typically between 9-14 characters. Example: C:\workpics\1238955678.1 C:\workpics\744556224.1 C:\workpics\744556224.2...

View Article

how to script out to connect to Active Directory specific domain controller...

How to script out a script that enable us to connect to the specific domain controller server, it is because I have 2 different servers version and both of them have been communicate with powershell,...

View Article


Powershell Asymmetric Encryption test

From the Powershell console, I enter the following 4 lines one at a time.$rsa = New-Object System.Security.Cryptography.RSACryptoServiceProvider(1024) $PrivateKey = $rsa.ToXmlString($true) $PublicKey =...

View Article

Find network printer configuration remotely

Hi all, I am new to this forum,  I hope someone would help with this,  I am looking for vb script which helps me to get the printers  with specific configuration, I want to list all the printe queues...

View Article

PowerShell Export-SmigServerSetting -- Won't allow copy/paste; throws...

We're using the following command to export our DHCP server to another server (both W2K8R2):Import-Module ServerManager Add-WindowsFeature Migration Add-pssnapin...

View Article


Powershell script in hidden window: Start-Process -Wait is not waiting

I am using a Powershell script to launch an application, which in this case includes applying some settings before the application runs, then cleaning up once it exist.  I don't want the Powershell...

View Article


i want to email the results of this simple command

I want to email the result output from the powershell command:  Get-DedupVolume | fl How can this be done ?Anand_N

View Article

Printer Script, under a tight timeline, please help!

Hey All,  I'm in a bit of a bind with a project for work and could use some assistance.  I have almost all of the hta code complete.  Long story short our users will use this hta to install printers on...

View Article

-NoNewLine not working.

I'm trying to output the status of a service running on a remote server. I'm doing this for multiple servers so the format I want will read:ServerName1: Stopped ServerName2: Running ServerName3:...

View Article

Check for a file before running

I have a script below that moves a file from one directory to another based on the file age. The script then compresses the file and removes the .pdf from the directory. The problem I am having is that...

View Article


Timeout command

Hi,      I have a script running on windows 2008 r2 to wait for 1 hour for an external file before this script can proceed. However, the script just proceed without going to sleep.      This is the...

View Article

Null value error

Here is my code and the error I am getting. How do I avoid the null value error by testing for a .pdf file prior to the rename?Error:You cannot call a method on a null-valued expression. At...

View Article


Running Stop-Process as a non-administrator

I have a PS script that needs to kill a specific application on the local server using the Stop-Process cmdlet. I don't want my service account to be a local administrator on the server but I can't...

View Article

escape code not working

| where-object {$_.innerText -eq 'Todays`'s Deals'} I have tried escaping the quote with a back apostrophe and with two single quotes, either way the script blows up. Any suggestions?

View Article


Get-DfsrBacklog for an individual Replication Group using Powershell

I am attempting to get the backlog count of an individual replication group using powershell. I have found several examples but none of them are working. I have attempted the following:1....

View Article

Bring window to front - appactivate does not help :(

HelloI am coding with vbscript.I have a need to make certain that sendkeys commands are sent to the proper program.I can use this to activate a window:success = WshShell.appactivate("MyProgram") if...

View Article

Remove Empty Folders by name

Hi guys!i must remove all empty folders in my PC.Each folder can be removed only if folder start-name is not 0 or 1 or scan.Examples:C:\Scan --> keepC:\Scan\Try -->delete try and subfolders, keep...

View Article
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>