Get-ActiveSyncDeviceStatistics
I have the below to generate details about a users active synced devices, but i also need it to return the ExtensionAttribute5 from AD, How can I do this?Get-ActiveSyncDeviceStatistics -Mailbox...
View ArticleInvoking Powershell modules on remote clients via package/command line
Hello Everyone - I have two modules(functions) that i've written and tested successfully locally in my environment that give me Uninstall and Repair functionality on whatever the string contains. Both...
View ArticleHelp modifying a powershell script
Hello,I have recently been given a task to write/find a script that is capable of performing Full and Incremental backups. I found a script that does exactly what I need, however, it requires user...
View ArticleGetting commands to join up...
OK so I've had a bit of a play with PowerShell, I've got a script that backs up a folder which is alright (it's just one line Copy-Item....) and I can look up the items in a folder... But I don't know...
View ArticleSetting Scope HyperV 2012 R2 What replaced ScopeOfResidence?
Basically, I want to know how to set the scope for a hyper-v vm in Server 2012 R2. I work at an academic institution, we intend to upgrade our 2008 R2 servers to 2012 R2 but before we can do that we...
View ArticleSigning Scripts
I'm fairly new to PowerShell and I'm struggling with script signing. I have the following code in my PowerShell profile. Set-Location Y:\Scripting\PowerShell function sign ($filename) {...
View ArticleGet computers in specific IP range
I am looking for a PS script that will get all computers in a specific IP range (i.e.. 10.10.0.0.). I know how to retrieve the similar query based and AD OU, but I need it based on specific IP range.
View Articlehow to Execute a cmd file in my ps script?
Hi All,I have a cmd file which calls an msi and passes paramters. I am calling this deploy.cmd file from a powershell script. How can i achive this? I am trying the following but it does not...
View ArticleExport to csv in Powershell
Hi,I have Powershell 2.0. In the script I am working on, I have 30000+ records generating in the Foreach loop. I want to be able to export all these rows to csv file.I hav tried Export-csv however it...
View ArticleAdding a date/Time stamp to a file using MS Command Language
I need to access the creation date and time of an existing file and then append that date/time to the filename using MS command language in a .bat file. The code executes on a Windows server. Thanks
View ArticleGet-Certificate cmdlet do not transmit credentials for authentication
Hello,I'm trying to use Get-Certificate cmdlet which supports -credential parameter. Whenever I use that parameter though I can not see credential being passed to remote machine, request comes as...
View ArticlePowershell scripts run in console but does not run as Job
Hello,I have a Powerscript script that run great when run in the console but as soon as I create a schedule Job is stops running.The script spawns off child jobs, these child jobs are the one that are...
View ArticleHow to add External data type column in a sharepoint list using powershell...
Hi,I want to add a new column with the data type External Data type in a list in SharePoint site using powershell script.
View Articlescript help
I have files sitting in a folder that need parsed and contents of those files emailed. The files contain the eye-catchers that I need to parse to create the email. The Who,Subject and ENDDATA...
View ArticleRemote Powershell with Kerberos authentication
Hi everyone,I can't find a clear answer : Can we open a "New-PSSession" on a Lync FE Server using Kerberos authentication ?I did some tests but there is no way to make it work...Thanks :)
View ArticleNeed to get RequestAccessEmail for entire SP2007 Web Application
Hello,I need to list all the email addresses of the entire web application in a file (CSV if possible for user friendly view). The web application contains numerous sites and sub-sites and most of the...
View ArticleStore your data to custom WMI class/parameter
I'm using "Invoke-WebRequest" command with "Measure-Command" to monitor my Web sites and I like to store that Response Time information somewhere and I think WMI would be a great place to store my web...
View Articlemsc how to launch as a differnt user
how can I launch a msc as a different user using powershell
View ArticleRemoving an AD User in Domain A from an OU located in Domain B
I'm trying to create a script for our Security team that allows them to automate the process of disabling a user. Part of that process is removing the user from the various Distribution Lists they are...
View ArticleHow to edit user's group memberships rather than a groups members?
So, my question is fairly simple, how do I edit the groups a user is a member of rather than which members are in a group?In ADUC, I can either pick a user and edit his groups, or pick a group and edit...
View Article