Session time-out while running a loop, help?
Hi AllWhile running a script I do a connection to SkypeOnline so I can set some policies on potentially thousands of students in a tenant:Import-Module SkypeOnlineConnector $SfBsession =...
View ArticlePowershell write-output
I have a list, and will it put in multiple script.I want to write-output first value of the list use first script, Then write-output second value of the list use second script and so on.What do I do?
View Articlecopy a folder except a subfolder recursively confused me
Hi Scripting Guys! When i try to copy a folder except a subfolder recursively I found something what confused me very much In my test environment i have a parent "E:\Test" , four subfolder named 1...
View ArticlePowerShell Write-DFSHealthReport on Server 2019
The Write-DFSHealthReport worked on server 2012 R2 but doesn't work on server 2019 when I try to move my scripts. What is the difference? It's using the same user account and both are local...
View Articlewhether I can Import-csv to Set-ItemProperty for MDTDeploymentShare
Hi Scripting Guys! When i Managing MDT Using Windows PowerShelli to config the Property of MDT Deployment Shares i wondered if exit another way like looping a structured csv file and pipeline...
View ArticleRunning a VBS script with no prompt and elevated permissions
Need to run a vbs that silently opens a batch file - which stops a service in this case, however need a line or two allowing it to runas (Windows 2012) These are for training labs where the student...
View ArticleMobile Device Report from exchange online
Hi, I would like to get a report of all of the mobile device in our exchange online with following detail.• Full Name • Email Address • Device Type • Device Model – if this could display...
View ArticlePower Shell File Upload to SFTP with File Existence Check
HI ,I have a requirement to upload multiple files to SFTP server from my machine using powershell.i have created the following scripts for the same . the script is working fine . but need to check file...
View ArticleProblem with sending encrypted messages, when using certreq to generate CSR...
After changing the certificate generation method, users have a problem with sending encrypted messages. The previous method is to generate keys, CSR and sign certificate on the certificate provider...
View ArticlePowershell determine FW Inbound blockall or block
HiI noticed that group policy has 2 settings to block inbound traffic1. incoming connections that do not match a rule are blockedor2. All inbound connections are blockedFrom the client side I'm...
View ArticlePowershell - filter an array
Hi all,I am trying to filter an array in power shell for elements which contain a specific pattern.I used this command to do so,$raw_data | where-object -Property ColumnName -EQ 'Pattern%'and I am...
View ArticleRunning a command from the CMD prompt in Powershell
New to Powershell:I have to run a command from the CMD prompt because it will not work in Powershell. I think I understand how to run it from the CMD prompt by using "cmd /c"? I tested my script on a...
View ArticleGet files names from folders in a loop
Hello everyone,As specified in topic i need only name of txt files that are in folder through which i iterate with a loop. Blow code returns only file path with file name:(Code is run from .bat file....
View ArticleLooking for powershell script to create a xml file
Hi,I would like tp create a script which I can add,Delete, Search, Edit data in the xml file.Within xml file I would like to have 3 element and then with in each element would like to have unlimited...
View ArticleIssues in Set-ACL Powershell
I am having trouble while setting ACL permission on my domain servers, Using windows 2012r2 with powershell 5.0. I am running below code but screen is just stuck no output or result. Permission is...
View ArticlePowerShell Script to find windows service status on multiple server
############################################################ # This script to find the Service Status on the list of computers.This script will generate a CSV file #input the servers list in...
View ArticlePowerShell Script to fetch local admin group membership from multiple servers
#Provide the lists of server input and script gives output csv listing members of local admin group#Its working script however please first try on test machine and then execute on multiple...
View ArticlePowerShell Script to create new AD user account using existing user ID
#Script to create new AD user account using existing user ID# import-module activedirectory $User = Get-AdUser -Identity (Read-Host "Copy From Username") $DN = $User.distinguishedName $OldUser =...
View Articleopen excel workbooks and save them as an xls file (stick with me)
Hey Guys, So we have an issue where several hundred excel workbooks, are being treated as .HTM or .HTML files. For Example if you open the file in excel, it gives you the file type mismatch warning,...
View Article