Permissions from SET-ACL only show up in advanced settings?
I have a bit of a situation here, I have two file servers setup with DFS (FS02/FS03). Everything is replicating fine aside from my users HOME directories. Me and my boss had initially created a script...
View ArticleImporting from csv and Exporting to csv in Powershell to query AD
Hi,Here's the story, i have a csv file that has close to 10000+ users listed in AD. The csv file has their name and title. (EX: Doe John, Manager)I'm trying to see if it's possible to query AD for the...
View Article90 day inactive user report
I have script which reports 90 day inactive users. However, I want this report to be sent via email. Is there any way this can be achieved. Need help.
View ArticlePrinting with powershell
So I would like to print all files in a folder by date without opening adobe, word, etc. What I normally do is open the folder sort by date then run the below script to print it all. dir $path |...
View ArticleAdd-Type usage?
I have some code: $authTicketRepresentationSource = @" public class AuthorizationTicketRepresentation` {` public string TicketId { get; set; } public string Username { get;...
View ArticleWindows Powershell webaccess - Unexpected Error occurred during the sign-in...
Hi All,I have followed below procedure to enable Powershell Web-Access and getting error during sign-in process.Created on windows 2012 VMJoined to the domainTruned off FirewallInstalled required roles...
View ArticlePowerShell and DateTime
I create a type: $authTicketRepresentationSource = @" using System; namespace SonicFoundry.Mediasite.WebApi.Model { public class AuthorizationTicketRepresentation` {` public string TicketId { get; set;...
View ArticleDynamicaly modify an unattended.xml in powershell to add a partition and...
Hi Guys,I have an unattended.xml file which setup parse well. I would like to dynamicaly modify it before launching setup according the hardware detected.For instance, I would like to add a partition...
View ArticleI want to create powershell console menu with submenus
I am looking to be able to create a menu system in powershell console with submenusMenu A1. Goto Menu B2. Goto Menu CMenu B1. Run command2. Menu AEtc etc
View ArticleMultiple computer prompt
I have a powershell script that goes out and collects data on multiple servers. I have to edit a file and dump in the server names and then do get-content from within the script to get the server...
View ArticleRemoving unresolved SIDs from AD Group populated with cross-forest members
Hi there,Looking for a way in PowerShell to remove a specific unresolved SID from a group. Having an issue where a group is populated with accounts from a domain in another forrest. When the accounts...
View Articleproblem adding computer to groups
Hi Guys,I have a question about this powershell script.I wanted to try AD and Arrays in powershell. Goal: move a computer in multiple AD groups.What am i doing wrong:# Get parameters, if not specified...
View ArticleHelp in Script for License Assignment for ADUC Custom Attribute
Hello, I need a script that can assign Office 365 licences based on an AD Attribute value. What I want though is the following:· Inside the script clearly label the attribute in use in case the I wants...
View ArticleFormatting Powershell Output
Hello Everyone,When i use Get-ADPrincipalGroupMembership $username | select name in my powershell code I Get all the groups that the user belongs to, but now when i assign the same as below it doesn't...
View ArticleWebRequest GetResponse throwing an exception?
I have some code:Try{ . . . . $webRequest = [System.Net.WebRequest]::Create(...)$webRequest.Method = "GET" $webRequest.Accept = 'application/json;odata=verbose'$webResponse = $webRequest.GetResponse()...
View ArticleMerging two command's output to a single table
Hi there. I'd like to merge the following two "chain of commands"Get-Mailbox | FT name,server,*quota* and Get-MailboxDatabase PREF* | Get-MailboxStatistics | FR name,*size*so that I have all the...
View ArticleNewbie - Creating a increasing variable- Maybe an array
Not sure how to ask this question.I want a loop where I enter in numbers for the same 3 questions until I end the loop by entering in a key word such as "end"Then I will create another loop that will...
View ArticleRemoving the roots of a subtree in an Xml file using powershell
Hi allI would like to remove a subtree in a xml file. I found how to remove the subtree, but not the root of the subtree Here I want to remove to second <Disk> ... </Disk> data.RemoveAll()...
View ArticleFunction not recognized?
I have a function defined at the bottom of my script that has a signature like:function Get-Properties($root, $nsmgr, $entityType, $modelNamespace)Then up above I call it like$propertyCollection =...
View Articlestring concatenation issue
$UserLastNameGlobal="James" $UserFirstNameGlobal="Bond"Write-Output "Folder $UserLastNameGlobal" + "_" + "$UserFirstNameGlobal already exists"=Bond already existsWrite-Output "Folder...
View Article