Search found 11 matches

by Anayazius
Sun Sep 27, 2020 9:21 am
Forum: PowerShell
Topic: How to gather unique directory name and then export as CSV or Out-GridView?
Replies: 4
Views: 583

Re: How to gather unique directory name and then export as CSV or Out-GridView?

Hi Everyone, The below script is working fine to list all explicitly defined ACL in my file server directories with the below specific exclusion pattern. 'NT AUTHORITY\SYSTEM', 'BUILTIN\Administrators', 'CREATOR OWNER', 'Everyone', 'DOMAIN\SERVICE-AVScan, 'S-1-5-21' However, I need some help in the...
by Anayazius
Sun Sep 27, 2020 3:41 am
Forum: PowerShell
Topic: Resolve Unique IP and Send Email?
Replies: 6
Views: 857

Re: Resolve Unique IP and Send Email?

Hi All, The below contents are from the $Results variable I got from my larger script. MachineName : PRDDC03.domain.com Id : 4624 TimeCreated : 4/09/2020 12:12:12 PM Account : DOMAIN\SVC-SQL LogonType : 3 LogonTypeString : Network WorkstationName : SourceIP : 172.16.32.99 SourceName : MachineName :...
by Anayazius
Thu Sep 24, 2020 12:57 pm
Forum: PowerShell
Topic: Get-Service from Remote server returns wrong service list ?
Replies: 4
Views: 495

Re: Get-Service from Remote server returns wrong service list ?

I wonder how to get the specific services based on the exact specific service name listed on the array of strings on a remote server? These are the below services I wanted to check: Status Name DisplayName ------ ---- ----------- Running DFS DFS Namespace Running DFSR DFS Replication Running DNS DN...
by Anayazius
Fri Aug 28, 2020 12:47 pm
Forum: PowerShell
Topic: Something like get-variable for array elements
Replies: 14
Views: 2061

Re: Something like get-variable for array elements

Hello guys, In a case where you have a lot of variables named like this: - Fruit1 - Fruit2 - Fruit3 - Fruit4 I can then on my code read the values using a loop, for example: for ($q = 1; $q -le 5; $q++) { $CurrentValue = (Get-Variable ('Fruit' + $q)).value } I also wanted to know your opinion on th...
by Anayazius
Mon Aug 24, 2020 10:58 am
Forum: PowerShell
Topic: Filtering Enabled only Get-ADObject to with specific patterns and OU?
Replies: 13
Views: 1757

Re: Filtering Enabled only Get-ADObject to with specific patterns and OU?

Hi All, I need to get the Enabled AD Objects (Users & Computer) that does not include the specific name patterns. How can I filter out or exclude some of the results using the Get-ADObject with the below Query? Script: $Exclusions = @( 'SystemMailbox', 'HealthMailbox', 'Migration' 'Delete' 'Disable...
by Anayazius
Thu Jun 25, 2020 8:17 am
Forum: PowerShell
Topic: Calling a function from within a dsc configuration issue
Replies: 8
Views: 2211

Re: Calling a function from within a dsc configuration issue

Perhaps the best way to point you is to tell you that DSC is not PowerShell. It is WMI/CIM classes and instances that are used to create, enforce or remove a configuration. DSC is not PowerShell. PS just supplies basic syntax for generating MOF files that DSC and ConfigMgr use to do their magic. Al...
by Anayazius
Thu Jun 25, 2020 1:57 am
Forum: PowerShell GUIs
Topic: is dynamic dialogs possible?
Replies: 4
Views: 905

Re: is dynamic dialogs possible?

it became clearer to me now. thank you!
by Anayazius
Thu Jun 25, 2020 1:56 am
Forum: PowerShell GUIs
Topic: Timer Event Help
Replies: 22
Views: 3330

Re: Timer Event Help

Thank you for such a valuable information. I was looking for a long time detailed explanation. Really appreciate your reply!
by Anayazius
Thu Jun 25, 2020 1:56 am
Forum: PowerShell GUIs
Topic: Datagridview multiselect and shift click
Replies: 7
Views: 878

Re: Datagridview multiselect and shift click

Thanks for the info
by Anayazius
Tue Jun 23, 2020 5:14 am
Forum: PowerShell
Topic: get-cred then use cred works in ISE, not in Powershell Studio
Replies: 7
Views: 1831

Re: get-cred then use cred works in ISE, not in Powershell Studio

I suspect I'm missing something simple. The idea here is to ask for elevated credentials ONCE on loading the form and then users are able to launch various tools; run some custom scripts, etc. In my globals.ps1 (I also tried in form_load) I request and store a user's elevated password. using $globa...