search
top
Currently Browsing: script

Script to add machines to a WSUS group automatically

#Script to add machines to a WSUS group automatically:#The script needs Admin credentials and the WSUS Administration Console installed on the machine where it runs #Initialize Variables $wsusGroup = [string] “ServerGroupC” $wsusParentGroup = [string] “All Computers” $date = get-date $date = [string] $date.day + $date.month + $date.year + $date.hour + $date.minute $succeslog =... read more

VB Scripts and UAC elevation

With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script under elevated privileges/admin privileges1. without using the Command Prompt? 2. without user being admin on machine?We can... read more

top