Search found 48 matches

by bhnuser
Thu Oct 25, 2018 2:34 am
Forum: PowerShell
Topic: Display specific OU of an AD-Object
Replies: 9
Views: 2952

Re: Display specific OU of an AD-Object

I thank you very much. It works for me now. I realized it now with your first suggest: $distinguishedName = CN=Test\, User,OU=NewUsers,OU=_Global,OU=Country,DC=company,DC=com or $distinguishedName = CN=Test\, User2,OU=Users,OU=DE,OU=Country,DC=company,DC=com or $distinguishedName = CN=Test\, User3,O...
by bhnuser
Thu Oct 25, 2018 1:55 am
Forum: PowerShell
Topic: Display specific OU of an AD-Object
Replies: 9
Views: 2952

Re: Display specific OU of an AD-Object

Thank you. This is very helpful for me. It's a little bit tricky. What i want is to display only the string "_Global", "DE" or "IN". This OUs are below the OU Country. Like: company.com/Country/_Global, company.com/Country/DE or company.com/Country/IN The rest of the pa...
by bhnuser
Thu Oct 25, 2018 1:33 am
Forum: PowerShell
Topic: Display specific OU of an AD-Object
Replies: 9
Views: 2952

Re: Display specific OU of an AD-Object

Thank you for the fast response.
But i need to the right OU of the selected user from Get-AdUser (Attribut DistinguishedName).
Is there a solution that you may know?
# Edit first post
by bhnuser
Thu Oct 25, 2018 1:18 am
Forum: PowerShell
Topic: Display specific OU of an AD-Object
Replies: 9
Views: 2952

Display specific OU of an AD-Object

Hello everybody, i need your help. I would like to display a specific OU of an Object of our AD. The issue is that i want to display the OU only under "Country" (_Global, DE, IN) For example (Get-ADUser): DistinguishedName : CN=Test\, User,OU=NewUsers,OU=_Global,OU=Country,DC=company,DC=co...
by bhnuser
Tue Oct 09, 2018 2:49 am
Forum: PowerShell
Topic: Executable Script Alert
Replies: 5
Views: 2398

Re: Executable Script Alert

The file exists in this strange path. The error also occurs when I open the file from another folder.
But what we already test is that we used an internal CA certification and the same error occurs (over build an .exe).
by bhnuser
Mon Oct 08, 2018 6:30 am
Forum: PowerShell
Topic: Executable Script Alert
Replies: 5
Views: 2398

Re: Executable Script Alert

If I try to sign the script with powershell studio it return that the object is missing >> Error Signing File: C:\Users\user\Documents\SAPIEN\PowerShell Studio\Projects\Cert\bin\x64\bin\x64\Cert.ps1 >> Das Objekt oder die Eigenschaft wurde nicht gefunden I opened the file out of the "Start Page...
by bhnuser
Mon Oct 08, 2018 5:58 am
Forum: PowerShell
Topic: Executable Script Alert
Replies: 5
Views: 2398

Executable Script Alert

Hello All,

i want to build a ps1-Script into a executable script. This word fine for me.
But when i rollout the .exe and the user execute this he got some alerts from windows defender and out antivirus (look pictures attatched).
Is there a trick to bypass it? Our Certificate is already deposited.
by bhnuser
Wed Sep 19, 2018 6:22 am
Forum: PowerShell
Topic: PowerShell Session
Replies: 5
Views: 2086

Re: PowerShell Session

What I want to say is that i will implement my script into a task scheduler that run every 5 minutes. This script will open each run a new session to the exchange. The question is whether i can save with the first run the session that my script doesnt open every time a new session to save time at th...
by bhnuser
Wed Sep 19, 2018 4:55 am
Forum: PowerShell
Topic: PowerShell Session
Replies: 5
Views: 2086

Re: PowerShell Session

Okay, thats sounds not so good. But asking costs nothing. I've tried it now and it takes about 5 seconds to load the session and commands. Its not so long but how i can manage it, when i put this script in a task schedule and run this all 5 minutes? The script would opens all 5 minutes a new session...
by bhnuser
Wed Sep 19, 2018 4:20 am
Forum: PowerShell
Topic: PowerShell Session
Replies: 5
Views: 2086

PowerShell Session

Hello everybody, i have a qustion to the PowerShell Sessions and can not find any answere to my problem. I want to write a script that opens a PSSession to our exchange server to get the cmdlts from the exchange shell. Unfortunately the pssession opens so slowly that i want to know how i can get it ...