Add support for PnP.Powershell
Opened this issue · 3 comments
pschaeflein commented
anoopt commented
@pschaeflein - Not sure if this helps - when connected to a SharePoint site using PnP PowerShell, a couple of environment variables will have values set in them. Those variables are $env:PNPPSSITE
and $env:PNPPSHOST
pschaeflein commented
Thanks so much!!!
Couple of questions:
- What if you are not connected? Variables missing or empty?
- Is there a variable with the user name?
- Would you prefer the connected site instead of the account? Or both?
anoopt commented
No worries Paul. Please find the answers below
-
What if you are not connected? Variables missing or empty?
The values are null.
-
Is there a variable with the user name?
I don't think there is a variable with user name. Maybe @gautamdsheth can provide more information. -
Would you prefer the connected site instead of the account? Or both?
Since we can connect either with an account or an app reg, personally for me, connected site only is fine.