Email address to Userr ID
HiIm trying to use powershell to obtain the users samid based on their email address (SMTP)Can someone please help as im new to powershell.
View Articlepowershell script for assigning \changing ownership of a shared mailbox
Can someone please tell me shell script for assigning or changing ownership to a mailbox ?!I am new to powershell, I have to update ownership of 200 shared mailboxes and would really prefer to run a...
View ArticleScript to find new accounts created on or after a specified date
Can anyone tell me how to get all new accounts created on or after a specified date and display the email name, first name and last name?
View ArticleImport multiple PST files to archive database
I need to create some script for import pst users archives to EXCHANGE 2010 sp1 database.Mail archives stored on single file server \\FILE-SERVER\PST\%Username%\An amount and name of files is different...
View ArticleIssuing a windows command from the powershell command line
Hello,I want to issue a command from powershell script after getting input in a form. I looked on line and saw that the command should look like :@powershell -Command "powercfg -Change...
View ArticleTry Catch with Nested ForEach
Hi ,I have the following code which checks for scheduled tasks on a list of computers and returns those which were not created by Microsoft and run as administrator. I'm trying to write any errors to...
View ArticlePowershell system temperature
Hello, is it possible to get system temperature information with powershell ? Thanks
View ArticleMaking sure a Users is logged on
Hello, I am wondering if powershell would be useful for a problem that arises every so often.We have a Domain Controller that has tasks that need to run every hour, the tasks are run under a DBA...
View ArticleWorkflow output
HiI converted a foreach to a workflowworks amazingly fastonly thing is I am struggling with output a little:)this is the workflow:<div class="pscode">workflow <span...
View ArticleNeed script to import folder list from csv and create a zip file for each folder
Hello,I am trying to import folder list from csv and create a zip file file for each folder . For example : C:\Inetpub\vhost\site1.com C:\Inetpub\vhost\site2.comand script will create a zip folder for...
View ArticleOut-File Question
I have this code that works on my local Windows 7 machine. (get-wmiobject win32_operatingsystem).converttodatetime((get-wmiobject win32_operatingsystem).installdate) but both sets of code below fail....
View ArticlePlease update
Can some please update/correct the below. I am new to this. Please help(dhingraamit@hotmail.com)Thanks $ErrorActionPreference="SilentlyContinue"Stop-Transcript | out-null$ErrorActionPreference =...
View ArticlePlease help
Please help and correct/update the below as I am very new to this(dhingraamit@hotmail.com)Thanks <Exec Condition = $Configuration)==testcurrent Command="PowerShell -command...
View Articlemerge 2 variables as csv
hi powershell.com i trying to Consolidation of two separate line as parallel lines.... my English is no so grate Background story:I use psgetsid on all computer i got from this software Ad tidy (with...
View ArticleSend Multiple Outputs to same HTML in Powershell
Friends,Can you please help me with PowerShell script to Send Multiple Outputs to same HTML (in a single table stretch) in PowerShell . I have a made a script , but it gets the details in Different...
View ArticleNeed Assistance Using the Printing All PDF FIles Script
So i am building my first powershell script and ran into a hurdle. In short, when i print the pdf files in the script below, it is printing out two files that i opened in the past instead of the files...
View ArticleIs the below syntax correct
I am trying to call a PowerShell script from within MS Build. Also maybe use the execution policy unrestrict.Can you go line by line with the full correct syntax <...
View ArticleIs this a bug with function definitions?
Can anyone explain why the below code works when saved as a script?function Get-Test { Write-Host "In function"}TestThe call to the function should be Get-Test. The above code should generate an error...
View ArticleHow To Ping the Serves From List and Parse the Output to Store Selected...
Hi there!Would you be so kind to compose a PowerShell script which does the following? I am trying to do it by myself, but having really hard time with it :(1.There is a file which contains a list of...
View ArticleDifference between workflow and module
Hi,Can anyone please explain what is the diff between workflow in posh 3.0 and module? As far as I know, the series of commands can be grouped together as workflow. when ever needed, we just call the...
View Article