-3
votes
1answer
25 views

How to identify which user is currently using the VM

How to identify which user is currently using the VM. That is the VM might have common login like administrator, test1 etc., but I want know which user/machine has launched the VM using mstsc from ...
0
votes
1answer
20 views

Powershell change Password of all Users in the Domain

i always get the ACCES DENIED Powershell Error and have no idea why.... my script: Get-ADUser -Filter * -SearchScope Subtree | Set-ADAccountPassword -Reset -NewPassword (ConvertTo-SecureString ...
0
votes
2answers
45 views

PowerShell script to export to single CSV

I need help to get the following PowerShell script to output too just one .CSV file instead of the current two. Can someone please help? I'm wanting to get the SNMP settings that are set on remote ...
0
votes
1answer
24 views

Using Greenshot external command to send a gmail with an attachment

I'm trying to setup an external command in Greenshot (a free screen capture tool) that will take the screen capture and send it to myself via gmail. I can run a command from the powershell console ...
-2
votes
1answer
22 views

Get the time elapsed for file created time and current time in powershell script

I am trying to find out whether the file in the folder existed for morethan 30 minutes or not.I need find the difference between current system time and file created time in powershell.Please help m ...
1
vote
2answers
66 views

How do run a powershell script as an admin?

I have the silent uninstall/wait/install script below that I need to push out to users, but I need to script it so it runs as administrator and I found some scripts, but I'm not understanding how to ...
1
vote
1answer
21 views

copy-item a file with strange characters in filename (i.e [])

I must copy a file names as follow $filename = "Sport.EL#15.csv.[]" into another folder. if I use copy-item -force Sport.EL#15.csv.[] $dest_path it doesn't work. since I do that: ...
0
votes
1answer
31 views

Selecting folders by name and all files and containers in their childfolders with powershell?

I have one big folder and I want to select 3 folders out of that and ALL items which are in these folders. I fail because I select everything with the name of the folder, so my script just copies the ...
1
vote
1answer
37 views

No Output Powershell Script

There is no output to this script when I run it. I think that its something obvious but although it creates the test.txt, no data is put in it on files that it deletes! Thanks in advance $limit = ...
1
vote
2answers
87 views

Powershell suppress console output

I have a call to GPG in the following way in a powershell script : $key = & 'gpg' --decrypt "secret.gpg" --quiet --no-verbose > $null I don't want any output from GPG to be seen on the main ...
-3
votes
0answers
35 views

How can I connect to a FTP server to download some files?

if I want to download files from a FTP server, using powershell, is there a way? can someone write some code?
0
votes
2answers
49 views

Read line-by-line file and split values

I need to read a txt file composed as follow: AA=1000,AA=320009#999999 AA=1011,AA=320303#111111 for each readed line I need to split it by "#" to get at the first turn $test[0] = ...
0
votes
2answers
142 views

Powershell Test-Path returns false, but the file exists

My script should look for a file in a computer list (txt) and return true if the file exists and false if it doesn't. The problem is, it's returning "False" even though the file DOES exist. ...
1
vote
0answers
40 views

publishing results in Nunit tests

i'am writing powershell script for multithreading nunit tests and one problem, i take categories from file cetegory.txt and my tests running under them and i have to write which categories has been ...
0
votes
3answers
100 views

automated scripting telnet or portqry

Need an advise on how to create an automate script to check connectivity from multiple servers to one server (DB) within Windows server environment either with telnet/portqry and also the script will ...

15 30 50 per page