How to add ActiveDirectory ObjectClass device to Security Group?
Hi!I have to create and add an Active Directory object with ObjectClass device to an Active Directory security group. I want to do this with PowerShell. This is my code:$null = New-ADObject -Name...
View ArticleHow to find if a user does not have permissions to their folder?
scenario: user loses permissions to their file share or user foldergoal: identify the user that has a matching username in AD but lost permissions to their folderissues: I can find the users that have...
View ArticleStuck and not sure what to do next
This is just the event area that I need help in. My csv file typically has two dates in the file. I need to be able to take the measurement reading for the most current (recent) date and place it in a...
View Articlepowershell ise error
hi I have windows 8.1 enterprise x64, when I want to enter powershell ise tools option powershell ise shows me unexpected error and "close program" How do i solve this problem
View Articlepowershell code,script Split - for each - how to?
Hello Good people,case:I've got an variabele ($post) wich can contain the next information (its posted with a form) and looks like :A B C Danna 1 2...
View ArticleDelegation Details for Exchange 2007
TeamWe are in 0365 hybrid setup & planing to migrate the users batch wise, so we required the delegation list (who are having full/send-as access on other accounts)so it will easy to move mailboxes...
View Articlehow restore damage environment variables
hi all, i damage in some way my environment variables and now im unable to run anything with elevation.The only command that i use was:[environment]::setenvironmentvariable("Path",...
View ArticleClient Connection Polling?
Is there a way to write a script of some sort to poll active client connections every few hours on a particular server with multiple shares? The end goal is to migrate those shares to a different...
View ArticledirectReports Array inside of another Array
So i am trying to make this directReports Array to parse into the CSV, but i cant get the syntax right. Can anyone help here?#----------------------------------------------------- function Release-Ref...
View ArticleControl size of Excel window openned with PoweShell?
Is there a way to specify the window size of a visible Excel window opened in a PowerShell script - to keep it from openning full-screen?
View ArticlePowerShell SCCM display Status Message Queries
I'm currently programming some right-click tools in PowerShell for the SCCM 2012. I'd like to program a tool, which displays the Status Message Queries of the right-clicked device. I'd like to have a...
View ArticleTrying to update hidden attibute in AD computer objects.
I am trying to update my AD computers using PowerShell to read the items from a CSV file. I have successfully updated the Description and other standard items, but I cannot get the non-common hidden...
View ArticleRestart Service or Server with Additonal privileges
We are planning to reduce number of tickets to IT dept. for service & server restart requests - but, users don't have addtional access for production server Plan is to share a common account which...
View Articleviewing background running tasks (performed via powershell) in new powershell...
helloin PS 4.0, i run a command to copy a large file to a location on my hard disk.copy-item c:\file1.iso -destination d:\then by mistake closed the powershell console. system's speed has been reduced...
View Articlewhere does update-help saves downloaded help files
helloafter upgrading PS in windows 7 to PS v4.0, i ran update-help Cmdlet. after that i leaved the office & suppose i don't have internet access to run save-help cmdlet.i want to know whether...
View ArticleDatamining PST Files using Microsoft.Office.Interop.Outlook
I was wondering how to datamine a pst file beyond it's primary folders to see if an empty folder has content in a subfolder and add it to an existing psobject?Cheers,B.$results = New-Object...
View ArticleEmail access query from powershell
I am trying to utilise the DoCmd.SendObject command, from powershell... I have the script launch the required database but I cannot get it to export the query information into Xl format and email...
View ArticleMissing Get-WindowsFeature cmdlet on Windows 8.1 Enterprise
Hi Just installed Windows 8.1 Enterprise. I don't have the cmdlet "Get-WindowsFeature". I do howerver have "Get-WindowsOptionalFeature" For Windows 2012 R2 I have both.Is WindowsFeature removed on...
View ArticleWhat are the constraints on the special variable names that use curly braces...
What are the constraints on the special variable names that use curly braces that enclose a pathname?For example: ${C:f1.txt}I can't figure out how to create a variable like that unless I explicitly...
View ArticleSet DNS to automatic across multiple NIC's
I have a client with 100(ish) computers. Whoever their IT firm was before us has manually set DNS on most of these computers. I would like to set all NICs on all computers to dynamic, and pull the DNS...
View Article