Use PowerShell Remoting to Manage SQL Servers Efficiently
In all the years I've worked as a server administrator, I've always logged into each server I work on to gather data or make changes. On Windows servers, the standard way to do this is to use Remote...
View ArticleFunction that updates the database - Guid Problem
I have a function that updates the database with a project name. The PK column is a GUID. When I pass in the project name and an empty GUID I get a error that reads: "Conversion failed when...
View ArticleAdding Pictures to AD
Okay I need help scripting the following. First the script needs to query AD to find AD accounts in one OU that do not have pictures, retrieving their employeeNumber. Then the script needs to match...
View Articlecopy-item: How to exclude files that already exist at destination
Copy-Item -recurse $i.FullName $destination -Filter *.trn is the line of code that I run to copy sql transaction logs from source to destination.THis was ok in most version of Windows. but in Windows...
View Articleunderstanding how to add Export-CSV into a script?
Hey Guys,S0 I managed to figure out how to Get-Content from a file. but Ive looked at many examples of Export-CSV and I just dont know where it should be inserted int the script to work..? if I can...
View ArticlePowerShell script works on PCs with PS 3.0 but not on PS 2.0
Hi all.I am new to PowerShell and am having some difficulties executing a script that I adapted from one I found online on PCs that are running PowerShell 2.0. The script executes just fine on those...
View ArticlePowershell CSV report usernames & Phone Numbers - but exclude area code?
HowdyI am working on a PowerShell report of user names, First, Last, and their phone number populated in AD.But the request is to take out the area code. That's not something I've done before, can...
View ArticleHosts Update
Would you like to update your HOSTS file from three different sources?In this blog http://hostsarchivo.blogspot.com.es/ at the end of item 15 a new version with $objNotifyIcon = New-Object...
View ArticleRemotely Querying a key on all user's registry on multiple machines
basically what I want to do is run a query on all machines within an IP range to find a registry key from each user on each machine, all the machines are on a domain which I have domain admin onit...
View ArticleYou cannot call a method on a null-valued expression.
Hi,I am trying to run a HP Warranty Lookup script that I stumbled upon and I am getting a couple of "You cannot call a method on a null-valued expression." errors...I am still learning Powershell and I...
View ArticleHow can I schedule this simple powershell script 3.0 to run using Win Server...
This simple copy line in powershell runs interactively but when I try to schedule in Windows task scheduler, it shows that it completed but it did no work. I.e., it did not copy the file. I tried using...
View Articlegci recursive
Hello,can someone give me a hint with a few lines script that i have.I have created a function that i call in other scripts. I am using regex to replace part of the folders.Folders have names like:test...
View ArticleInstalling a .msi remotely
Now, I've been working on this problem for a couple days now and seem to have hit a wall due to my limited knowledge on PowerShell. For the first part of the code, I take the msi and copy it to the...
View ArticleRestart server & then email
I am trying to write a script to restart a server and then email when the restart is done.I started with this basic command: Restart-Computer -ComputerName <string[ ]>,But I can't get it into a...
View ArticleAutomation in DOwnloading some files from websites using powershell
Hi,I am facing problem to download some files(such as pdf files) having name of all files from internet websites using powershell.i am facing problem because when we serch for one files urls of dites...
View Articleexe programs and powershell
Can I get public string value in an exe program into powershell?
View ArticleRunning a PowerShell Script for a Sharepoint Workflow
Powershell script works on the main site, but does not work on sub-sites in Sharepoint 2010. Assistance will be greatly appreciated. # SharePoint.Workflow.Start-SPSiteWorkflowparam ( [string]$Url...
View Articlepowershell error when invoke another script
I have two scripts that run fine as seperate scripts, but when I invoke one from the other then I get this error message:<br> "Exception Name:...
View Article