Error handling in VBscript
Hello, I'm extremely new to scripting and was seeing if i could get some help. I'm tasked with setting networked printers as global printers on community computers. I think i got the script down but...
View ArticleScripts to optimize Windows 8 Performance as platform for a Digital Audio...
Hi folks,It has struck me for a long time that it should be possible to create a configuration for Windows that is optimized for real-time interactions of a Digital Audio Workstation (DAW) while...
View Articleset-acl and the registry
HelloI'm learning about manipulating the registry using PowerShell, I've been following the examples in the "Windows PowerShell 2.0 Administrators Pocket Consultant". That book suggests that the...
View ArticlePowershell script `
Hi,I have a Powershell script that works great except it does not actually return all AD users. The script is a bastardization of another script, i don't care about the last logon date but this was...
View ArticlePowershell: Issue with Try-Catch block
function Test($cmd) { Try { Invoke-Expression $cmd -ErrorAction Stop } Catch { Write-Host "Inside catch" }...
View ArticleHelp with help! (Powershell 3.0)
I know I brought this upon myself, but since upgrading to the Powershell 3.0 CTP, my help has all gone! For example,Get-Help Get-Childitem...will return this: NAME Get-ChildItem SYNTAX...
View ArticleRun command prompt command via VBScript
I have a command which gives only read permissions to the user on D drive .. When I run the command from cmd it runs just fine but when I try running it by integrating with VBScript it just doesn't...
View ArticleProblem with -match
Hello Everyone!I'm trying to create a script which picks up MAC from the output of arp -a <ipaddress> command. I have stupid error with 1 single ip where the match seems to fail:$ip="10.52.9.19"...
View ArticleRecycle an app pool in IIS 7 as a non-administrator using powershell remoting?
I have several app pools in my IIS setup that need a swift kick (recycle) once in awhile. I can run the following from a powershell command line myself just fine and even script it for easy...
View ArticlePS Script to install various .exe/.msi - Help with modification
@JRV helped me yesterday with a script to install various .exe's using a PS script. I have made some additions and modifications to have the script also delete the directory after the process...
View ArticleError while retrieving the extended File properties value having...
Hi, I am trying to get some file properties and write it to a file "Files.log" and if error occurs it calls for a function OnError.But, when a file property has value with chinese/japanese/russian...
View ArticleFile Transfer from old pc to new
I am trying to write a powershell script to transfer files from a users old desktop to their new. I will be running this script from their new computer as the user will still be using their old one...
View ArticlePowerShell FTP Client Module - PSFTP - Issue with Get-FTPItem (alias...
Hi All,I came across the following power-shell modules: http://gallery.technet.microsoft.com/scriptcenter/PowerShell-FTP-Client-db6fe0cbWhich works brilliantly for me apart from the Get-FTPItem...
View ArticleProblems with send-mailmessage in scripts run under task scheduler
I have a script which sends notifications to users prior to password expiration. It works wonderfully when I run it manually. When run as a scheduled task most of the emails don't get delivered....
View ArticleI DESPERATELY NEED HELP WITH A WS SCRIPT!
I have been working on my first script to automate a task for work. Sometimes it works and sometimes it doesn't. It has never worked completely. I have been working on this for three weeks and am...
View Articlesecure way to log off from terminal server using script
Good morning,is there a way to allow regular users to log off from terminal server using batch file (perhaps C script using cmd commands). In the firm we use this "super" information system accessing...
View ArticlePowerShell Script To Disabled Inactive Accounts With Specific Extension...
My task is to identify, document in csv file & disable user accounts. The criteria for selecting these accounts is:1. From a specifice OU2. LastLoginDate is greater than 90 days (not...
View ArticleHow to script to change a local user(not AD) dial-in properties?
I need to create 4000 local user accounts in a stand alone Windows Server 2003 (is not a member of Active Directory). I have an script to do reading users and passwords from a text file. The problem is...
View ArticleAppend to AD User Account Description Property
How do I incoroporate this into the script below. I need to Append/Add to the AD User Accounts' description propertyflagged for disablement with (Dor-Get-Date-IEM).#My Script cls Import-module...
View ArticleDetermine a computer with uptime more than week and notify Administrator
Good day to all of you.I've searched through technet for uptime scripting and had found only scripts and ways to findout the uptime.As I am too bad at programming and scripting (trying to study now but...
View Article