Help for this page

Select Code to Download


  1. or download this
    $input = "date";
    $program = "powershell.exe -STA -ExecutionPolicy RemoteSigned -command
    + -";
    ...
    print WRITEME ". ./PowerShell/common/Get-SepmRmmWsAccessToken.ps1 -sym
    +-383925ff28c -port 8446\n";
    print WRITEME "Get-SepmRmmWsAccessToken -HostName 10.211.34.102 -Port 
    +8446 -ClientId 7cbce559-2eca-4ff8-806b-b2e511a239d0 -ClientSecret 729
    +05a1c-2953-4607-bb9a-0e92060308b7";
    close(WRITEME) or die "Couldn't close: $!\n";
    
  2. or download this
    use IPC::Open2;
    $program = "powershell.exe -STA -ExecutionPolicy RemoteSigned -command
    + -";
    ...
    print "$output\n";
    print "Content read is:\n----------------\n";
    close(README) or die "Couldn't close: $!\n";