Custom stuff... in a Table
Hi All,I created a powershell script to check every 60 seconds the counts of Move requests on O365... It works exactly how I want it to... but it's in a list based format...So output would...
View ArticleSave unsaved files
I need to save all open Excel, Word, and PowerPoint documents to a temp directory(C:\temp\), regardless if they have ever been saved or not. The saved file will be the "CurrentDocumentTitle +...
View ArticleNew Version of the Azure Active Directory Module and PowerShell 2.0
Since the last upgrade of the Azure Active Directory Module for Windows PowerShell (64-bit version), we are no longer able to load it in an application targeting .NET Framework 3.5 SP1. The error...
View ArticleRun ps1 in ps1
I have C:\TestThis.ps1 $ip in a ps1 file and running ok. After changing the file name to C:\Test This.ps1 (add a space in), how to run C:\Test This.ps1 $ip ?
View Articlememory issue calling .Net component in PowerShell
I have a .Net-based SDK that we also expose via a single PowerShell cmdlet--all of the methods in the SDK are called as methods in PowerShell once you get a reference to the base object. One of the...
View ArticleSend email after finding out the PrimaryStatus of the hard drives
Hi,I have a script that will run through all names in the active directory and scan each to find things like the name, model, driveUsage and Primary status. However, I don't want to go through all logs...
View ArticleGet-MailboxPermission in Exchange 2013 Online returns insufficient...
Hi,I use something similar to the below to get a list of accounts with permisisons on a mailbox: $username = "SOMEACCOUNT" $mailbox = Get-Mailbox $username $faperms = $mailbox | Get-MailboxPermission...
View ArticleGet-WinEvent unusual errors
Hi all,looking to change one of my scripts to use Get-WinEvent in place of Get-EventLog. testing the command to see what properties are returned so I can update the script something unexpected...
View ArticleRetrieving the COM class factory for component with CLSID...
I have come across a weird issue while running a PowerShell script through task scheduler. Below is the simple script which would open all the sites of a SharePoint farm in IE browser.Add-PsSnapin...
View ArticleProblems due powershell upgrade
Hi guys!I want to update powershell from version 2.0 to 4.0 on some VM 2008 R2 but i read about some problems after updating powershell and now i'm scared to fail.Can you show me the best practices to...
View ArticleWhy do I get 'Access is Denied' when using Set-Service with Admin privileges?
Hello,Im a Domain Admin and run the following from the ISE on a Domain Controller. I start the ISE with 'Run as Administrator'. I take a list of our DCs and based on some filtering logic, come up...
View ArticleMicrosoft Dynamics AX Scheduler
Is there a way using Powershell to access a scheduler on an DAX AOS server to determine the status of a job? I have a pair of jobs on a SQL Server 2008 R2 database that need to run as soon as the DAX...
View ArticleAdd line to a text file just after a specific line with PowerShell
Hi, I have to edit remotely a file called nsclient.ini on hundreds of computers, the file contains some command definitions. For example:[/settings/external scripts/scripts] check_event="C:\Program...
View ArticleISE Addon for Checkout or Checkins via TFS 2013
HiI am coordination the development of some PowerShell scripts to work against our SharePoint Farm. Now as there is more that just me developing these scripts, I think we need to start doing regular...
View ArticleRun Script under different user - always
Is there a way to make it where a users runs a powershell script and when they execute it it runs under different credentials without prompting for username/password? the scenario is this, Im writing...
View ArticleSQL Query Fails through Powershell
I am trying to alter the Permission set on the Assemblies using powershell and I keep getting the same error. For the life of me, I just cant figure out where I may be going wrong here. Any help is...
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 ArticleNeed to to set single values on a set of properties for each user in a list
I've got a list of Active Directory user accounts that need the following properties set for each respective user account:SAMAccountNameUserPrincipalNameEmailAddressMailmailNickname I've been working...
View ArticleRecursively select all subordinates for all users from AD
I'd like to use AD to maintain a list of a user's subordinates, which will be used in a custom application to control the display of information. Currently, this list is manually maintained, and it...
View Article'set-acl.exe' not recognized as the name of a cmdlet,
hi all,I would like to seek some assistance as I am not able to use the "set-acl.exe' powershell command to take ownership of...
View Article