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

Check to see if a registry key exists, it is driving me mad!

Script Language - vbScript.I am currently developing a script to check our servers have specific SNMP configuration settings, if they do not then the script will make the neccessary changes...

View Article


Registry key check script

 I'm hoping you guys can help me with a simple script (at least I think it should be simple).  I need a script to check if a registry key exists and if it does to run a batch file, if not it should...

View Article


PowerShell Get-ScheduledTask in Windows 2008 R2

Hi guysI have a script which I built in Win 2012, and it works nicely (I am rubbish at powershell so pleased at this!)Running it on Win 2008 R2 tho, doesn't work because that cmdlet doesn't exist.I...

View Article

get folder security and if it's set using security groups, list the members

I'd like to create a list that contains the ACL's for a folder and sub folders. If the ACL's are set on a user, list the permissions for the user. If ACL's are set using a group, list the permissions...

View Article

Start-process exit code 1.

$cred = get-credential Invoke-Command -ComputerName server01 -Credential $cred -ScriptBlock {  $exit = Start-Process powershell.exe -ArgumentList 'c:\temp\managescomagent.ps1 -action add -gwname...

View Article


Scrit to delete a subfolder with spaces in the name

I am trying to write a script to delete a folder and all of its subfolders.  My problem is that the folder has spaces in the name and I am getting a path not found error when i try and use either the...

View Article

AD accounts from CSV

Does anybody see anything wrong with this PS script to create AD users from a CSV.Import-Module-NameActiveDirectory...

View Article

Getting Dimensions of images in a folder using Power Shell

I have a folder with several thousand images. I am hoping to list the images with the dimensions for each image.I found this link that gets me some info, but I wasn't completely successful with...

View Article


Delete SQL Server Backup Files Older than 7 days

Looking to create a vbscript to be run from SQL Server Agent on SQL Server 2008.Script will1) determine day of the week.2) traverse through a fixed unc path \\storage\blah\backups\ then day of the...

View Article


first script in powershell | beginer

hye so i try to do some script for taking exe files and extract them to host then it will import all extraced vms to hyper-v manager then configure the vms virtualswitch and take all snapshot.give me...

View Article

Image may be NSFW.
Clik here to view.

VBScript can't run

I write a VB Script, got below error when running.Script content:----------------------------------------------------------------------Const HKEY_CURRENT_USER = &H80000001strComputer = "."Set...

View Article

How to delete files which is older than 14 days in particuler folder using...

Hi,I am new to Batch scripting.I want to delete the files which is older than 14 days in particular folder using Batch script.Please help me on this regards.Thanks,Jitu

View Article

ADSI script not working for remote PCs

Taking the script from: http://blogs.technet.com/b/heyscriptingguy/archive/2008/03/11/how-can-i-use-windows-powershell-to-add-a-domain-user-to-a-local-group.aspxThis does not work:$objUser =...

View Article


Issue renaming SubFolders ToLower

Hi, I'm new to scripting and this may be something easy to do.I'm running a script to rename every file and subfolder inside a folder, it replace caracters such as "ç" for "c" and nullstrings for "_",...

View Article

Script to automate change of folder permissions and ownership based on the...

Can this be done the way I specify below? If so, can someone post an example of a script that would work?2 directory structures need to be modified \\server\documents\%username%...

View Article


Create folder and assign Security permission using power shell.

Hi,I am getting an error at line 22, char 17. I was able to execute this once succesfully, not sure what changed in between..Can any one find what the error is.$loc = Read-Host 'Where do you want to...

View Article

Continue For Loop

Hi all.I'm struggling to find a way to move on a step in a loop.  The idea of below is that "Next Item" will never be echoed... but I'm getting a syntax error.. what have i done wrong?dim i for i = 0...

View Article


hwo to move nested folder as it is to sharepoint document lib

Hi All,     I putting up a script together to move nested folders with files in it to a doc lib n sharepoint as it is I'm sure i should be able to use powershell for this and i need an assistance ......

View Article

SCCM Lite PowerShell script

HiOver the past few months I have been developing a PowerShell script and front end for a sort of 'SCCM Lite' by hooking into the free deployment tools that Microsoft provides, such as MDT, WDS, Remote...

View Article

Problems with install local printers from vbscript

Hi all and sorry for my broken English)Ihave a problem with install local printer from vbs (I plan torun it as user logon-script) on Win7without administrator rights.I tried different methods (rundll32...

View Article
Browsing all 15028 articles
Browse latest View live


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