Need help giving users rights to a specific folder
Hi so right now I'm just testing this on a new folder on my desktopCode:$Acl = Get-Acl "C:\Users\cody-horton\Desktop\New folder" $Ar = New-Object...
View ArticleGet Licenses of User without using any dll in c#
hi, when getting the licenses of user through get-msoluser , i see that the licenses is of type list<UserLicense> . Is there any way to get the details of AccountSKUIds of the license for a...
View ArticleReturn exitcode to cmd file from powershell (nested call)
I have a nested call (application > cmd file > powershell > start process powershell with file parameter), and I need to return the lastexitcode from the script back to the cmd file.This is...
View ArticleMove command silently fails. Why?
I'm trying to move all the files sitting in one directory to a different directory. The directory names used in the command are stored as variables in an array. For some reason it is not working.Here...
View ArticleAssistance with my script to find all opened windows (applications running)...
Hello,I have the following script whereby I want to list all the running (opened) applications on a remote computer. It's a shared computer between two people who use the same generic ID. Before one...
View ArticleScript to to update users attribute based on EmployeeID Value from CSV file
Hello, i am trying to build script that read the data from CSV file, the only data exist on this file is the EmployeeID.so i need to read the EmployeeID and for each employeeID exist in this sheet in...
View ArticlePowershell integrated with sqlcmd - Logging the output
Hello Guys,I am new to using power shell and my scenario has too many variables for me as am still relatively new. I have power shell scripts which restore databases on SQL Server 2000, 2005 and 2012...
View ArticlePerformance of powershell on 64bit on 2008 R2 v. powershell on 32bit on 2003 SP2
Converted a script written in vbscript to powershell v2.0. When running the script in 32bit mode on Windows Server 2003 SP2 script runs in about 10 minutes and processes 6500 files. Running the...
View Articlepowershell account service
helloon which account service powershell use when access network ressources and how can i check or modify this accountthank you
View Articleimport-csv to Sql
I'm trying to import a file to SQL and I have 2 issues where the string value won't load to my datetime and integer fields I have defined in SQL. The Effdate and Line seem to be my problem during...
View Articlemandatory parameter inheritance
helloI have aglobal scriptthat encapsulatestwoother scriptsthat inheritthe value of theparameter$RootFoldermandatory.#startscriptparam ([Parameter (Mandatory=$True)][string] $RootFolder$RootFolder=...
View ArticleTechnet PS Tip of the Week Input Box script not returning value?
Hello all. I am trying to learn how to make input boxes in powershell and I came across this wonderful Microsoft Technet article here for the Powershell Tip of the...
View ArticlePowershell 4.0 on Windows 7 and Windows Server 2008 R2
I have installed .Net Framework 4.5.1, and Powershell 4.0, and having some issues with some cmdlets; primarily dealing with scheduled tasks. Is Get-ScheduledTask available when Powershell 4.0 running...
View ArticleExport-csv to current User's desktop
How can I export a csv file to the current user's desktop? Several users will be running a command that will export a csv file, and I would like it to export it to each of their desktops when they run...
View ArticleAzure AD Managment
Hi, I recently ran into the situation where we wanted to create multiple Azure AD's from a particular subscription. However, I quickly discovered there are no management options from within powershell....
View ArticleScript Modules and Variable Scope (Preference Variables)
While working with PowerShell and writing various psm1 module files, I've noticed that for whatever reason, Advanced Functions in a Script Module (psm1 file) do not inherit the Preference variables (or...
View Articlerun a vb script
Hi,I need to run a .vbs script from powershell. What is the command to run the script?
View ArticleImporting attribute from a CSV to AD for multiple users
Hi All,I have searched around for an answer to this and tried it on our test domain with a test CSV file, but can't get it to work. So I apologize if the answer is out there, but I'm unable to get this...
View ArticleSharePoint Online Management Shell
Is SharePoint Online Management Shell compatible with Windows 8.1 Pro PowerShell 4.0?thanks.
View ArticlePowershell - Modify Share Permissions on NAS (without WMI)
Good morning everyone!I have been working with Powershell (and Orchestrator) to automate management of our file shares. The plan is to modify, remove, rename and/or create these shares and apply...
View Article