Using PowerShell to Extract Information from the UPS
Hello, I am new to using PowerShell but have been tasked with writing a Script that will query the UPS for recent changes. I have searched to try to give myself some clues but cannot even see where to...
View ArticleSharepoint 2013 - CSOM and Powershell
HiIs there any definative guide on the differences between what can be done in C# for CSOM and Powershell with CSOM ?http://msdn.microsoft.com/en-us/library/jj193041.aspx#SPclientlanding_coreI am...
View ArticleConvert String to Size
Hi,I have a string with a value "12.03 MB (12,615,874 bytes)"Would like to convert this to Size type, so i can convert it to bytes or KB etc.,thanksexchposh
View ArticleGet User details like DisplayName, RealName, Alias, SAMAccountName, Title,...
Hello want the user details with below properties; tried with Get-mailbox and Get-mailboxstatistics but not getting all the details .. Can some please help ThanksDisplayName, RealName, Alias,...
View ArticlePowershell IF Statements - Moving a PC IF it is in a certain 'CN' in Active...
Hi,I am new to Powershell (and this forum), and I am really hoping someone (anyone...) can assist me with.I have been using a simple Powershell Script to move PC's in to specific OU's depending on...
View Articleasking uac challenge from within batch script
Sorry for maybe repeating an old question but I still cannot find an appropriate answer.Is it possible to get a batch script to request user account elevation if needed?I want to run a simple batch...
View ArticlePassing arguments to a batchfile from a .txt file
I have a batch file, X.bat which creates the ftpparam.txt file.It has a argument %1, I want to pass the value for thsi from the data in FILELIST.DAT. The dats in it is :----------...
View ArticlePowershell pipeline input breaks script
I've got a script that accepts either a string (in the form of a user's sAMAccount name), or the output of the Get-Mailbox (Exchange 2010) cmdlet. It takes the specified users and moves their mailboxes...
View ArticleFormat Write-Error
Hii have a Error message like this :Write-Error -Message "Backup failed for Datasource $($DSPSN) :: $($DSDP)" -ErrorId $Global:ErrorCode where the output look like this:JobStatus : Backup failed for...
View ArticleNeed a batch file to increment the file or folder name after renaming
Hi, can anyone tell me how do i rename a file or folder in a shared path so that the last part of the name is incremented automatically next time when i run the batch file again.For example if the...
View Articleprimary DNS suffix
Is there a WMI Class to read / modify the primary DNS suffix of a computer?Searching a lot I could only find the Win32_NetworkAdapterConfiguration. But this acts on the connection specific suffix - not...
View ArticleVBS file to run multiple Batch files on a UNC share
I would like with one VBS file ton run multiple batch files in a certain order.This is what i have currenttly but i cannot make it work. Option Explicit Dim FSO, shell Set FSO...
View ArticleNeed help with this code.
I have a list of IP Address in a CSV and need help trying to get the last octet of each IP address to use in a command for creation of DNS records. IP ADDRESS 10.1.1.20 10.1.1.21 10.1.1.22 10.1.1.23...
View ArticleHow to fetch event logs from a list of remote computers using powershell
Hello, I have the below powershell script which i'm executing on a server, but when i'm receiving the email in my mailbox, sometimes i have blank emails with only the subject appearing as "EventLog...
View Articlea question to loop a variables in other variable
hello,i want to loop my variables to my request in my script below , i notified my request at the end and whitch i want to loop for my different variables.i dont want to do my request fo each servers...
View ArticleHow to use AD cmdlets for Powershell to update Subnet location and/or...
Hello. Been searching other posts, forums, etc. and thought I would come here. I used the addsubnet.ps1 script from Jerry Martin to batch create thousands of subnets in AD using csv files for input....
View ArticleUninstalling software that does not contain a method named 'Uninstall'
I'm still working on a script I had issues with a couple weeks ago. The purpose is to uninstall various software on remote machines. Here's the script:$computers = Get-Content 'C:\computerlist.txt'...
View ArticleOpen Word app and doc in VBS without showing command window?
I use VBA in Word and Excel quite a bit, but every now and then Ihave venture into VBS to run something outside of the app. My way of saying that I know very little about VBS. In this instance, I...
View ArticleFeedback / get PID for Invoke-Command Start-Process
Hello again Scripting Guys, I have a script that lets you install software on remote computers. It's a little slow when using against a long list of computers, but it works. I do not have SCCM...
View ArticleNeed help in uninstalling application using VB scripting
Hi friends,I am not able to find what is wrong with the below script. please help me in finding out where i went wrong.If IsArray(arraySoftwareNames) Then strComputer = getComputerName()...
View Article