Function 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 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 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 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 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 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 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 Articlework with windows files
Hello, i am new in Powershell. I Need very urgent help. i have to convert files "RC_*.zip" from a Windows Folder with a Java script with a foreach Loop. I do this with one file in a dos Batch file and...
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 ArticleScheduled Remote Reboot using Powershell Script
Hi Guys, Can you help me or share your ideas for a scheduled reboot on a particular server. Actually we are working in an insurance side that requires us to have an atutomation for scheduled Reboot of...
View ArticleI cant connect to remote host without specifying the FQDN
It used to work with netbios name, but now i have to specify the FQDN. This doesnt seems related to DNS and the problem is on my workstation only. Does anyone have a clue ?I'm running windows7 64bits...
View ArticleProblem with Powershell script to check folder sizes on remote servers
My script below is supposed to get the total size of folders and files within acertain directory. However the error shows Get-ChildItem : Cannot find path '\\servername \c$\Documents and Settings'...
View ArticleProbelm importing a text file into excel with powershell
here is my code, I have tried many things I found on the web and none seem to work. it imports to excel but is not broken into cells. I think it has something to do with the format of the mod1.txt...
View ArticleGrabbing the filze size of a group of files from a select-string
I need to grab the file size of a group of files from a select-string. There are two folders that i need to manage. $Source = C:\TEMP\isantillan1 and $Destination = C:\TEMP\isantillan2. The logic here...
View Article