Map a network drive based on the user group
Dear everyone, I know there is a tone of topics about that but i need a script a bit specific.I need in Powershell to map a network drive based on the group user.The particularity is : There is not a...
View ArticleHow to get MS Office product key
Hello all, I would like to ask if is possible to get MS Office Product key from registry using powershell. I have one script which gets Windows Product key I need same think for office. Is it possible...
View ArticleAn Active Directory Health Check PowerShell script v1.0
This is a PowerShell script which offers an Active Directory Health Check. These checks are based on my personal best practices. Some of the checks may not be applicable to your environment.Read More
View ArticleLooking to create a PowerShell script that deletes everything under all users...
Hi All, Looking to create a powershell script that doesn't delete the home directory from everyone but deletes everything within there home directory and then remap their home directory to another...
View ArticleRemove-ADComputer message: The directory service can perform the requested...
When I run this command: Remove-ADComputer -identity $computernameI get this message: "The directory service can perform the requested operation only on a leaf object."This is because ADUC tells me...
View Articleexport result to csv files
Hi, In below script i am able to query the NTFS security rights for the data files but i am unable to export into csv files.Please help me to export the result to csv files. Function Get-DBPermissions...
View ArticleReading and Processing Data in Batches of Some Number
Let's say I have a text file containing all county names of any state and I want to process those in groups of 5 until I have exhausted the entire file for purposes of sending that list of 5 to one...
View ArticleCopy two files into the profile
Hi there.I want to copya folderwith twofilesin the DFSShareinthe user'sCitrixprofile.However, if thefolderalready exists,nothing shouldbe copied.This shouldbechecked everytime the user logs.I wantthis...
View ArticleCan't delete folder recursively in script, no errors are printed.
I'm trying to remove a directory with a powershell script, the script seems to be working fine except for the deletion at the end. It's not printing out any errors so I'm not sure how to determine why...
View ArticleTrying to find instance of item in array, -contains isn't working
I'm trying to write a script in Powershell that will match extensions of file names. This is what I have so far:$location = $args[0]; [String]$extensions = @(".mkv", ".mp4", ".avi", ".wmv"); $pruneSize...
View ArticlePlease help! Active Directory Security
I posted a question earlier about how to remove permissions for a specific user/group from an Active Directory OU. Based on the help I got here, I was able to come up with a script. Now my script...
View ArticleModules and Runonce
Hi,I have a logon script that pin icons in the taskbar for users.The code for pinned icons use a module PinnedApplication.psm1.I have 4 servers for user connection so i have 2 questions :- The psm1 and...
View ArticleUsing -repalce to alter content of a variable
The script gets each mailboxes ProhibitSendQuota but as some of the mailboxes reside on Databases with storage limits set at the database level they return “Unlimited”. As a side note, I run this on an...
View ArticleAudio volume
friends,how do Icontrol theaudio volume(the overall volumeandMedia Player)?
View ArticleSoftware Carpentry: Draft of Windows Scripting Tutorial using PowerShell
As with most software carpentry boot camps, one of the topics covered was shell scripting and the scripting language of choice was .... Read More
View ArticleTwo new Azure PowerShell Posts in the Reference Guide
I have added two new posts to the Azure PowerShell reference guide for IaaS..Read More
View ArticleLive Incident Response with PowerShell
We often see the offensive capabilities of PowerShell hit the headlines as it is more attractive. It’s good to know and see what attackers do to penetrate your network, execute code to remain...
View ArticleFRIDAY FUN REVERSE POWERSHELL
These Friday Fun posts are not supposed to be practical, yet hopefully still entertaining and educational. Today’s article is no exception but I ‘ll be you’ll try it at least once. And you’ll maybe...
View ArticleFind folders and apply permissions
I have a network share setup like this \\server\region\projectxxx\specialists and under the specialists folder there are 6 folders called A, B, C, D, E, FSo for region 1 there may be 15 projects and...
View ArticleScript of Software Inventory
Hello my peers Need powershell script that checks which softaware be installed on the machines in the network via the windows registry and get back to me in a file the software installed. And that...
View Article