• You need to replace � with "
    and ofcourse create a config.ini

  • I was curious if the AD security assessment script I should be able to copy and run it? I see that I have gotten quite a few errors when running the script. I copied exactly what I saw into notepad++ and ran it. Only to get errors.

  • My Active Directory security assessment script pulls important security facts from Active Directory and generates nicely viewable reports in HTML format by highlighting the spots that require attention. The script manipulates user data using facts collected with benchmark values.

  • > What is more important for PowerShell? Backward compatibility or cross-platform support?

    Backwards compatibility, hands down. The use cases for cross-platform PS in an enterprise environment are dramatically less compelling when the overall functionality of the framework seems diminished.

    I have admins that won't touch PS7 due to dropped functionality. The ActiveDirectory module and RSAT generally is a nightmare. I still can't get the AD module to work properly on 2016 Servers (but at least they are honest in saying that it shouldn't). PS7 should work and cover major 5.1 functionality, which absolutely includes things like ActiveDirectory and SQL. I won't even get into the whole boondoggle that is SOAP - I'm grateful for the enhanced capability of PS7's Invoke-*Request cmdlets, but losing SOAP was definitely a pain for lots of platforms that still use it.

  • Installing the Exchange Management Tools forced me to install using the slightly different command D:setup /mode:install /role:managementtools /IAcceptExchangeServerLicenseTerms_DiagnosticDataON or D:setup /mode:install /role:managementtools /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF so the LicenseTerms were accepted.

  • David, that works if you just have a few tiny scripts. However, in general you will want to organize your scripts in folders. Why do you think that working with the path variable won't work?

  • What you should probably do is just either put the scripts you want in your $profile script or just dot source them from there. Having them in your path doesn't necessarily do much for you.

    If you just dot source them from your profile, then you can easily call your functions from anywhere..

    David F.

  • Marta, you can append the PATH environment variable. The PATH variable determines where the OS searches for executables.

    You could change $PATH in your PowerShell profile to make it permanent:

    $env:Path += ";C:myScripts"
  • hi, I'm a bit new to powershell and trying to figure out if it is possible to add either a powershell script or a function inside a powershell script to your path. Basically at the moment I have a problem and have to open powershell in the directory where the powershell script is, or navigate to the directory. From there I then have to execute my script. I want to just be able to execute script from anywhere on the shell without messing about with specifying the path to the tool, is than even possible?

  • Windows offers the iSCSI initiator applet, which enables configuring iSCSI connections interactively. However, if you want to automate connecting and disconnecting iSCSI targets, you can use PowerShell. It covers the functions of the GUI tool with its iSCSI module.

  • Not need to discuss this. Try it out and you will see that the result is TRUE.

  • Your example "PowerShell" -match "ower" does NOT result in TRUE. Rather it results in FALSE. The -match operator is looking for an exact match. Not a partial match as your example would suggest

  • Sponsor posted an update in the group Group logo of PowerShellPowerShell 1 month, 3 weeks ago

    Webinar: Active Directory Management  Easy as that with PowerShell
    Managing Active Directory users and groups is one of the central, recurring tasks of IT administration. In this webinar, we will show you how these tasks can be standardized, automated and delegated in a time-saving manner using PowerShell.

    Register for free!
  • Hi,

    when i run Get-CQDDimensions, it gives me error

    Get-JWTData: Cannot bind argument to parameter 'Token' because it is an empty string.
    Invoke-WebRequest: nodename nor servname provided, or not known
    ConvertFrom-Json: Cannot bind argument to parameter 'InputObject' because it is null.

    Could anyone pls help.

    Thanks

  • When we need to monitor Azure activities, we use Azure Activity Logs. These logs are automatically created in Azure and cannot be deleted, as they are needed for auditing and diagnostic purposes. We can configure some of these logs to be sent to designated places, such as a Log Analytics workspace, where platform logs can be consolidated into a single location for easy management. In this post, we will focus on retrieving Azure Activity Logs using PowerShell and Kusto queries against Log Analytics workspaces.

  • Load More
© 4sysops 2006 - 2022

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account