Script not running in task scheduler
I have a script that performs a number of tasks based on info provided by a number of csv files. The last task, before emailing the results with the log file, is to perform some tasks in Office 365. I...
View ArticleHelp with Validation Script
Hi AllI am having an issue with the script below which gives me the results im after for about 100 rows but then it exports incorrect values.I am trying to compare my CSV which contains GroupName,...
View ArticleUsing Powershell to run a batchfile with arguments on another computer
Hi,Can anyone help with this one?I have a bunch of servers and one of them is the 'controller' for want of a better term.Now and again we have to run a batch command on all of the servers. I can get a...
View Articlecopy multiple files content in one file with file names
hello friends;How can I copy multiple text files contents in one file with file names.I used cat or type or get-content but this commands doesn't copy the file names in one file.
View Articlecapture output to csv and use filter
I want to capture the output of script into a file that I could later email to group. I want to filter Name to only selective databases for my output file[CmdletBinding()] $ssasInstance = 'ss1'...
View ArticleCommand Completion when using Powershell Direct
Hello,is there a way to enable command completion when connecting remotely to a VM via PowerShell Direct?I'm using Windows Server 2016 TP5.ThanksChristian
View ArticleCommand Completion when using Just Enough Administration Sessions
Hello,is there a way to enable command completion when connecting remotely to a VM to Just Enough Administration Context?I'm using Windows Server 2016 TP5.ThanksChristian
View ArticleExporting SQLCMD output to a comma delimeted .csv file
Hello, Want to run the below shown PS script. The only issue that I have now is writing to the output file with a comma delimiter. I should also have the column header. Can you please help with this?...
View Articlegetting ps to work from cmd line
Hi we are running 2008 r2 64 bit OS on server A and Windows Server 2003 STD SP2 (I believe this is a 32 bit OS) on server B. I am attempting to run powershell with the following syntax from the...
View ArticleDebug simple powershell script: get macaddress, username and netbios in csv file
Hi everybody,I'm not a killer in powershell and i want to retrieve localhostname, current user logged in, and macaddresses of local computer to export all in CSV file.I writed a litle script to do this...
View ArticleHow to stop getting prompted to "Confirm"
Hello,I have some Windows Server 2008 systems that I'm trying to run a powershell script on to delete some temp files, but I keep getting prompted with "Confirm... Y [Yes] [A] Yes to All...... ect" Is...
View ArticleCombining Multiple CSV Files with Powershell
Hi,I have a number of CSV files that I want to combine into a single CSV file. They all have the same number of rows and one of the files has 2 columns.(i.e. a timestamp row and a numerical value that...
View ArticleHow do I get a report or list of user mailboxes and the size of the mailbox.
We are using Exchange 2010 and I don't know where to start with this. Any suggestions?
View ArticleSimple windows form with a combobox and radio
Hi,Sorry, but i'm newbie in PS and my english so bad(I try create a simple windows form with a combobox and radio for easy select credentials and connect to MS online services.It must import from csv...
View ArticleUsing C# to run PowerShell command to create VirtualDirectory fails
I can run these commands with no problem directly in PowerShell. But trying to get C# to run them, I receive errors.md d:\ftproot\vdir\test20140317A; New-WebVirtualDirectory -Site "[site]/[a virt...
View ArticleGetting exception in executing Open method of...
Hi,I am getting exception in executing Open method of System.Management. Automation.Runspaces when connecting to remote server. The exception which we get is given below:-Connecting to remote server...
View ArticlePowershell - Check Windows Service is started or not started
Hi all,I am new to powershell and I am looking to write a script that will check if a service is not started and will start the service and if it is started will confirm that it is started in a log and...
View ArticleComparing two arrays
Hi Team,I have two arrays as mentioned belowArray1 Array2John MikeMark Paul Bill John MarkI need to compare this two arrays and after...
View ArticleHow do i filter the results of get-aduser to only match numerical values
Admittedly i am fairly new to powershell but this is proving more complicated than it needs to be. I have been asked to export all users from AD and then filter out any user with an employee id that...
View ArticleAD groups to excel
Sorry if this is the wrong area cant find where it may go.i have many AD groups and have been asked what folders they apply to huuuuge jobto help I have a command that will tell me some details of the...
View Article