Skip to content

Instantly share code, notes, and snippets.

@frayos
Last active February 13, 2018 14:05
Show Gist options
  • Save frayos/3297c88996bb9dae5f1d03fd672d2eff to your computer and use it in GitHub Desktop.
Save frayos/3297c88996bb9dae5f1d03fd672d2eff to your computer and use it in GitHub Desktop.
KRBauth.sas check
%put Site: &syssite Release: &sysvlong System: &sysscp &sysscpl;
%macro show(command);
filename p pipe &command lrecl=32767;
data _null_;
infile p;
input;
put _infile_;
run;
%mend;
options ls=115;
%show("wmic useraccount where (name='CHANGER_LE_NOM_DE_L_UTILISATEUR') get name, AccountType, Description, Domain, Disabled, LocalAccount, Lockout, PasswordChangeable, PasswordExpires, PasswordRequired, SID");
%show("echo %computername%");
%show("echo %logonserver%");
%show("whoami");
%show("klist tickets");
%show("klist sessions");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment