Tuesday, February 1, 2022

How to reopen closed notebook OneNote 2015 windows 8.1

How to reopen closed notebook OneNote 2015 windows 8.1

I'm think this might be the wrong forum, but there was no choice in the bloody list for office 2015 (Office 365 could be it, but when they break the naming convention it couldn't hurt to put office 2015 in parenthesis could it?), so please redirect me (after answering my question if possible) if that is the case.

Googling this question only came up with the answer click file->open the notebook, but there is no file button I can see. Clicking the image of 3 horizontal parallel lines in the top lefthand corner (where file usually is) opens up another column for other notebooks that are currently open. This column also contains options for adding additional accounts or creating an entirely new notebook, but no option for opening closed notebooks. Can anyone tell me how to open a closed notebook?

Also I have got to say I can appreciate the fact that they were trying to be minimalistic in the number of options and menus (and having none of the o-so handy persistent bars at the top and bottom of the screen for tasks or options), but why is that more important than making something as simple as opening a closed file intuitive and simple?


Reply:
I fiddled around with it a bit, tried the last clickable thing I had not clicked: the add account thing, then clicked cancel or back, then another item appeared in the notebooks column. It was a drop down menu that contained all of the notebooks that had been closed on my account, clicking on the closed notebooks in this menu reopens them (for anyone with a similar problem).

------------------------------------

Please remove Spyhunter 4 from my programs

Every time I try to remove spyhunter 4 from the control panel to uninstall it says I don't have permission and must get permission from the administrator. How can I remove this


Reply:

Are you logged in under and administrator account? If so and you are still getting that error then take ownership of the root folder it is installed under using this method.

If for some reason you cannot uninstall after confirming you are under an admin account and taking ownership of the folder you can try to uninstall from the CMD by following these instructions.


------------------------------------

How to Monitor ADFS 3.0 Web Service URL

hi Experts,

We are in plan to deploy ADFS 3.0 setup in our environment. we have a ADFS Service as https://adfs.domain.com(example). IF this URL service functionality is not working then it should inform IT admins.  My query is :-

1. How do I monitor the ADFS Service URL from Externally from internet and also from internal LAN.

2. We have F5 - GTM product which gives a hit to URL and checks input from Web server (like any string). In Our Case, we are using ADFS proxy 2012 R2 (Remote access feature). What can I do on URl web page so it can give a string/any output to Monitoring tool (F5-GTM).

Please suggest on above or you can also provide any other better solution for this.  

  • Changed type Frank Shen5 Thursday, June 25, 2015 5:43 AM Redirected

Reply:

Hi,

Based on the description, for ADFS questions, in order to get better help, we can ask for suggestions in the following forum.

Claims based access platform (CBA), code-named Geneva

https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=Geneva

Best regards,

Frank Shen


Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


------------------------------------
Reply:

Thanks ..

https://social.msdn.microsoft.com/Forums/vstudio/en-US/750595c0-94ba-4d7f-be08-8fcd30f7bdc5/how-to-monitor-adfs-30-web-service-url?forum=Geneva


------------------------------------

Logging level for SPMonitoredScope

I am developing multi thread application on SharePoint, and i am trying to verify if the timing of threads is controlled correctly by using SPMonitoredScope. When a thread enter and leaving a section, it will write message in ULS log. And after importing this uls log entries into WSS_Logging db, i can query these logs with sql to find out where the timing is correct.

However, the problem is:

SharePoint seems only import trace log with level higher than Mornitorable into DB. So, i use TraceSeverity.Monitorable in constructor of SPMonitoredScope. but SharePoint log the "Leaving monitored scope" entry with High level, that is to say, only "Entering mornitered scope" is imported into db, without "Leaving mornitored scope".

I tried to raise the TraceSeverity level to Unexpected in constructor of SPMornitoredScope, still the result is the same.


  • Edited by GuYuming Wednesday, June 17, 2015 10:24 AM

Remove Autosum from Powerpivot Colunmns / Force List Filter Mode

Hi,

i want to configure all filters with List Filter Mode, and i've noticed that some table columns that i use as filter, for example, year or week, always open as range mode.

I've also noticed that this table columns have AutoSum enabled, as they are numbers. I don't know if i change the table column to text if i will have problems with my calculations. So the question is if is there anyway to remove AutoSum from these columns, and if possible to change the columns for text.

Regards


Reply:
Lrmmf, have you made any progress on this?

Thanks!


Ed Price, Azure & Power BI Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)

Answer an interesting question? Create a wiki article about it!


------------------------------------
Reply:

Sadely No. Sorry for the delay.

(Should i wait for something like Powerview on steroids, aka, Datazen? :))

Regards


------------------------------------
Reply:

In the PowerPivot Designer click on File -> Switch to Advanced Mode

Then click on one of the numeric columns that you do not want auto summed.

Then under then advanced tab click on the "Summarize By" option and change that to "Do not summarize"


http://darren.gosbell.com - please mark correct answers


------------------------------------
Reply:
Thank you, i cannot confirm @ the moment because im in another project.

------------------------------------

Im using CloverETL to connec to SharePoint using REST API.

my team is trying to get the List items in SharePoint using REST api. we are using the CloverETL tool using the REST api URL of the list and the credentials in SharePoint which has full control. Below is the rest command that we used.

/_api/web/lists/getbytitle('title of list')/items 

when viewing this URL on the same Internet explorer with a user log on to sharepoint the XML of the list is successfully showing. but when we try to load it on the CloverETL tool using the same SharePoint credentials it says access is denied. Also when viewing the URL to a browser with no other SharePoint sites open it also says access is denied. 


Reply:
how is the webapp configured, as far as authentication?

Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs


------------------------------------
Reply:

Hi

I've got exactly the same problem. HttpConnector is returning 401 Not Authorized.

Did you find a solution?

I'm very confused about what SharePoint requires in terms of tokens / authentication.


------------------------------------

how do i get current time including running seconds from sql server

hi .

how do i get current time including running seconds from sql server

i am using select getdate()

2015-06-17 09:05:55.080....   here seconds should be running.

any help appreciated,                

                                                                                                                           thanks,

                                                                                                                           shravan   

  • Changed type SHRAVANDBA Wednesday, June 17, 2015 6:06 AM i dint check mirroring forum was in a hurry and posted

Reply:

Why you posted in database mirroring does it seems to you it is related ?

What do you mean by running seconds from SQL Server the value shown by getdate() is always the time when query ran it wont show you seconds running


Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it

My Technet Wiki Article

MVP


------------------------------------
Reply:
Sorry what do you mean by seconds running? GETDATE() will always give the system time including seconds part and it will keep on changing during the day. Can you illustrate with an example your requirement?

Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
----------------------------
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page


------------------------------------
Reply:

Hello - If I understood correctly you are trying to achieve sort of running counter that shows changing time like we see in websites. I must tell you that T-SQL is not meant for this. This has to dealt within some client side programming language  such Javascript or something else.

At best, you can use While Loop or WAIT FOR but they are designed for specific purpose & I personally do not think that would serve your purpose



Good Luck!
Please Mark This As Answer if it solved your issue.
Please Vote This As Helpful if it helps to solve your issue


------------------------------------
Reply:
Seconds are including if you run SELECT GETDATE()

Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/

MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance
SQL Server Integration Services: Business Intelligence


------------------------------------
Reply:

ok. Thanks to each one of you ..

i was just trying to display time like 11:37:15 

i thought if there is such option to display the running second as we see in a website or clock

once again thanks everybody 

Regards,

Shravan


------------------------------------
Reply:
SELECT CAST(GETDATE() AS TIME (0))

Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/

MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance
SQL Server Integration Services: Business Intelligence


------------------------------------

Problem with Exchange UM Auto Attendant

Hi,

we are using Echange 2013 UM and Lync 2013. We have created an UM Dial Plan with the Subscriber and Auto Attendant. Everything is okay, unless I got one strange problem I need help with. As soon as I am enabling the Set the auto attendant to respond to voice commands, the Attendant responds with "Please call again later, goodbye". When I am disabling it, it works withount issues. I do not have the an auto attendant configured if voice fails, which is an option. Is that mandatory ? Where is the issue ? We are running Exchange 2013 CU8 with the German and English Language Pack installed.

  • Changed type Eason Huang Wednesday, June 17, 2015 8:12 AM more related with Exchange UM

Reply:

Hi,

From your description above, it should be something wrong with Exchange UM, as I'm not a Exchange UM expert, you can post a case on Exchange UM forum and there are more Exchange UM experts will help to solve the issue. Thanks for your understanding.

Here is the link to Exchange UM forum:

https://social.technet.microsoft.com/Forums/exchange/en-US/home?forum=exchangesvrunifiedmessaging

Best Regards,
Eason Huang


Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

Eason Huang
TechNet Community Support


------------------------------------

Update error: 0x80070520 fbl_impressive Enterprise 10130fbl_impressive Enterprise 10130

I had the same error using our domain login. I would get this error every time on the domain account, rebooted and tried a few times and I got the same error every time. I then switched to the local account and the update installed fine.

Found the answer by Hank Chandless on:

https://social.technet.microsoft.com/Forums/en-US/726ad1c3-721b-4e86-8682-2835bfb0d784/update-error-code-0x80070520-fblimpressive-10041-professional?forum=WinPreview2014Setup


gbrugman


Reply:

gbrugman,

Thanks for your sharing.

If you don't mind, I will change this thread into Discussion.

Regards


Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.


------------------------------------

how to install Lync client by SCCM 2012 R2 if I installed earlier Office365 without Lync

Hi Guys,

We're prepraing to upgrade our OCS 2007 to Lync 2013. On workstations we have installed Office2010 with OCS client and workstations with Office365 and OCS client.

We using this config to install Office365:

<Configuration>

  <Add SourcePath="here is the path" OfficeClientEdition="32" >
    <Product ID="O365ProPlusRetail">
      <Language ID="pl-pl" />
 <Language ID="en-us" />
      <ExcludeApp ID="Groove" />
    </Product>

  </Add>  
  <Updates Enabled="TRUE" UpdatePath="here is the path /> 
  <Display Level="Full" AcceptEULA="TRUE" />  
  <Logging Level="Standard" Path="%temp%" /> 

  <!--Property Name="SharedComputerLicensing" Value="1" /> -->
  <Property Name="AUTOACTIVATE" Value="1" />
</Configuration>

Can I install only Lync 365 client? I created another xml file with config:

<Configuration>
  <Add SourcePath="here is the path" OfficeClientEdition="32" >
    <Product ID="O365ProPlusRetail">
      <Language ID="pl-pl" />
 <Language ID="en-us" />
      <ExcludeApp ID="Groove" />
      <ExcludeApp ID="Access" />
 <ExcludeApp ID="Excel" />
 <ExcludeApp ID="InfoPath" />
 <ExcludeApp ID="Word" />
 <ExcludeApp ID="Excel" />
 <ExcludeApp ID="OneNote" />
 <ExcludeApp ID="Powerpoint" />
 <ExcludeApp ID="Publisher" />
 <ExcludeApp ID="Outlook" />
 <ExcludeApp ID="Groove" />
    </Product>
  </Add>  
  <Updates Enabled="TRUE" UpdatePath="here is the path" /> 
  <Display Level="Full" AcceptEULA="TRUE" />  
  <Logging Level="Standard" Path="%temp%" /> 

  <!--Property Name="SharedComputerLicensing" Value="1" /> -->
  <Property Name="AUTOACTIVATE" Value="1" />


</Configuration>

But this uninstalled my Office365 on workstation. 

  • Changed type Eason Huang Wednesday, June 17, 2015 5:59 AM more related with SCCM

Reply:

Hi,

The issue is more related with SCCOM, you can post a case on SCCM forum and there are more SCCM experts will help to solve the issue. Thanks for your understanding.

https://social.technet.microsoft.com/Forums/en-us/home?category=systemcenter2012configurationmanager

Best Regards,
Eason Huang


Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

Eason Huang
TechNet Community Support


------------------------------------

Windows IT Pro Insider Update Series: New Topics

Help us prioritize what is top of mind for you with regard to Windows Updates. Here are some of the topics that IT pros have brought to our attention in recent months:

Vote and comment on the questions posed by these threads—or comment here if there is a topic that is more important to you. We'll use your votes and comments to determine what we write about next.

Thanks

-Tony


IT Pro Audience Manager for Web Forums


Reply:

Hi, the most important matter when talking about Wsus is the need of restarting Servers after applying updates.

It's not always easy to restart a server during working hours.

The second thing, some small/medium enterprises uses Wsus to update third party softwares (like Adobe Reader, Java and so on). Local Publishing, need to be keep active on future release of Wsus. And some improvements can be made (like managing detectoids)


David COURTEL

IT Technician

Wsus Third-Party Softwares Publishing : Wsus Package Publisher

Outlook 2013 PST Backup : Pst Backup 2013


------------------------------------
Reply:

Hi David,

Reboots are very disruptive especially for servers. We've tried many different approaches to reduce or eliminate reboots and have eliminated many of them over time, but at the core there is a very hard problem: how can code execute rapidly to fulfill user/business tasks and at the same time change to a new version? Code can only be updated if it is not running and there are parts of the operating system that never stop running except during a reboot - for instance, the kernel and some drivers. I'll add "Managing reboots" to the forums to see if there is interest from other IT pros for a deep dive discussion on this topic

I wonder why you mention restarting a server during working hours. Many IT environments use maintenance windows (days or times at which servers are least used) for reboots. This could be on sunday at 3 am for instance. Reboots can be scheduled to happen during those time windows so that users and business processes are not affected. Does this not work for you?

Thx

Thierry


------------------------------------
Reply:
Created new topic here. Please vote and comment if interested in a deep dive discussion

------------------------------------
Reply:

Hi Thierry,

"I wonder why you mention restarting a server during working hours. Many IT environments use maintenance windows (days or times at which servers are least used) for reboots. This could be on sunday at 3 am for instance."

In fact, we are using some poorly developed application that needs to be manually launch once we have opened a Windows session. So, we cannot afford to schedule a reboot at night.


David COURTEL

IT Technician

Wsus Third-Party Softwares Publishing : Wsus Package Publisher

Outlook 2013 PST Backup : Pst Backup 2013


------------------------------------

Bug in Get Windows 10 App

Not sure if this is the right place to report a bug.  If not, please point me in the right direction.

Anyway, the bug is that, if someone has already registered for the Upgrade to Windows 10 and has registered for email notification, and do certain things (see reproduction method below), it will ask them to re-input their email, and it'll also actually resend it.

Reproduction: Make sure you've already met the requirements of this bug as described above.  Next, right-click on the Get Windows 10 icon in your taskbar.  Select "Check your upgrade status".  Instead of pointing you to the "All done" screen like it should, it points back to the email input screen.  This bug will actually resend the initial "Congratulations" email.  If the confirmation is accessed by entering the Get Windows 10 app and clicking "View confirmation", it is shown as it should be, even after following the above steps to reproduce this bug.

SMB Direct

Hi,

I have two machines server 2012 OS with 10 GB regular and 56 GbE network card.

SMB direct is enable using powershell in both OSs (Enable-NetAdapterRDMA or Set-NetOffloadGlobalSetting -NetworkDirect Enabled for all cards).

Are there any additional settings needed for configuring SMB Direct in windows server 2012?

Write speed is 1.5 Gb/s and then drop to 400 MB/s. Also read speed 600 MB/s. Also 1.5 GbE seems to be inconsistent (sometimes even 870 MB/s write).

Any idea what is missing  in order to use more bandwidth of adapter? I would expect it to be faster and use more bandwidth.

 Additional questions:

 How to verify smbdirect is working while copying files in IB mode?

 Is there any way to capture network traffic while in IB mode?

 Best way to measure times?

Are you familiar with good links of RDMA\SMB Direct monitor counters?

Any help would be appreciated,

Thank you,

Limor


Reply:
SMB Direct is a feature that requires NICs that support the capability.  It is not available on all NICs.  Check with your NIC vendors to see if they support SMB Direct (RDMA) on their NICs.  Generally speaking, if you have a vanilla 10 GE card, it is not likely to support RDMA.  Every RDMA card I am familiar with runs at 40 Gbps or higher.

. : | : . : | : . tim


------------------------------------
Reply:

Hi tim, 

First, thanks for your reply.

I am using 40\56 Gbps network card and this NIC supports RDMA for sure (I am in touch with the vendor). 

Are the settings of SMB Direct (described above) are enough? I want to verify that the environment is configured OK to allow the highest performance.

From your experience with 40 Gbps NIC, did you see that whole bandwidth is getting exploited with SMB Direct? (Read\Write) are you familiar with numbers?

Thanks a lot for your answer,

Limor


------------------------------------

adam797

adam797
  • Changed type Yan Li_ Wednesday, June 17, 2015 5:17 AM

Reply:
To enable us to help you better, you need to provide as many details as you can about the problem you are experiencing.

If you design your question effectively, you can get good information from people who are knowledgeable about the topic and who are happy to help you.

Prepare your question. Think it through. Hasty-sounding questions get hasty answers, or none at all.

What troubleshooting have you done so far?



Asking an effective question will get you help faster read how here

Suggestions for asking for help on a site.
http://www.catb.org/~esr/faqs/smart-questions.html


Wanikiya and Dyami--Team Zigzag


------------------------------------
Reply:

Hi,

As it seems not like a question, so I will change the type to discussion. You may post more infomation here if you really have a question to ask.

Thanks for your understanding!

Regards,

Yan Li


Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


  • Edited by Yan Li_ Wednesday, June 17, 2015 5:20 AM edit

------------------------------------

Workaround for Home Page icon in Edge

Currently Edge has no Home Page icon.  Here is a workaround for that.

Have Favorites Bar showing. Open the site used as Home Page.  Save it to Favorites Bar & name it Home Page.  Bit crude, maybe, but, it works. :)

(From a person in another IT Forum)

One thing, it does save back paging twice to go from Reading View back to Home Page; now one click back to it.  (W/out this, one went to an item, article, on the HP or from it then, selected Reading View... when read would go back to article normal view then, back to Home Page)

Cheers,
Drew

Drew MS Partner / MS Beta Tester / Pres. Computer Issues Pres. Computer Issues www.drewsci.com


  • Edited by Drew1903 Wednesday, June 17, 2015 5:16 AM

[Forum FAQ] Export site collection and import it to be subsite of another site collection in SharePoint 2013

Scenario

Customer needs to export site collection to be subsite of another site collection, while he encounters the issue "cannot import site. The exported site based on the template BLANKINTERNET#0 but the destination site based on the template STS#1".

Solution:

In SharePoint 2013, target site template should match the source site template. We can create subsite in target site collection based on the same template as source site. However, in this customer's situation, he uses Publishing Portal as source site collection, we cannot create subsite based on this template via UI.

We need to use PowerShell to create subsite based on this template:

New-SPWeb http://targetsite/subsite -Template "BLANKINTERNET#0"

Then import site via the command:

Import-spweb -identity http://targetsite/subsite-path c:\export.cmp

The following screenshot is for reproducing the issue and resolution.

Reference Link:

https://social.technet.microsoft.com/Forums/office/en-US/ccfbac85-5e07-4187-bb85-404317cc0e27/export-site-collection-and-import-to-another-site-collection-under-subsite?forum=sharepointgeneral

http://blogs.technet.com/b/araviraj/archive/2008/06/18/sharepoint-templates-types.aspx

https://technet.microsoft.com/en-us/library/ff607579.aspx


Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

[Forum FAQ] Display parent site calendar on subsites in SharePoint online

Scenario

In SharePoint online, the customer uses sites to collaborate all projects with a subsite for each project. On parent site, there is a calendar which has general information about all projects.  He needs to show this calendar on the individual project subsites but with the information filtered to only contains events relevant to the project. However, calendar list cannot be displayed in subsites by default.

Solution:

On parent site, the calendar can be filtered by views for each project. Then we can use Data View Web Part to display parent site calendar on individual subsites:

  1. There is a calendar named Cal-Parent on parent site. I create a Calendar view to filter for Meeting Category.
  2. Open parent site with SharePoint Designer, navigate to Site pages, and create a new web part page Full, Vertical.
  3. Insert Data View > Cal-Parent, then save the web part to Site Gallery. Click Yes when dialog pops up.
  4. Now access subsite via browser, create a site page, and insert web part > Miscellaneous, you will find your newly created web part in Designer.
  5. Add the web part and edit the properties > Selected Views, switch to the Meeting view.
  6. Now you will see the expected calendar view, and if you create items in parent site calendar, it will sync to subsites.

Here are the screenshots during the test:

Reference link:

https://social.technet.microsoft.com/Forums/office/en-US/267fde51-6a5f-4c5c-bed5-ff51f3583d94/displaying-parent-site-calendar-on-subsite-sharepoint-online?forum=sharepointadmin


Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

Use of Application Request Routing (ARR) "IIS reverse proxy" for publishing

Hi,

Can we use ARR "IIS reverse proxy" to publish specific path to http(s) server , for example http://mail.domain.com/OWA but not http://mail.olyan.com/ECP for example; if yes then how? The requirement is to publish sub site of SharePoint portal not all the portal,
we need to publish this virtual directory (http://domain.net/English/Departments/CSC/Pages/default.aspx

  • Changed type Vivian_Wang Wednesday, June 17, 2015 1:42 AM

Reply:

Hi,

Did you refer to this blog?

using application request routing as a reverse proxy for sharepoint

http://thesharepointfarm.com/2013/05/using-application-request-routing-as-a-reverse-proxy-for-sharepoint/

Meanwhile, for the issue, i think you could ask in sharepoint forum:

https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?category=sharepoint

Or IIS fourms:

https://forums.iis.net/

Regards.


Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com


------------------------------------
Reply:

Hi,

Any update about the issue?

Regards.


Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com


------------------------------------
Reply:

We have a SharePoint 2013 intranet portal, with need to publish ONLY a subsite to accessible through internet http://intranetportal.net/English/Departments/Dept1/pages/default.aspx .  We don't have ISA or TMG, we're using a layer 4 firewall.

I am thinking about publishing SharePoint using Web Application Proxy http://blogs.msdn.com/b/sambetts/archive/2014/12/10/publishing-sharepoint-with-windows-server-2012-r2-web-application-proxy.aspx but does this support publishing only the subsite, not the whole portal? If yes then how? What are the requirements?


------------------------------------
Reply:

Hi,

For the issue, i think you could ask in sharepoint forum:

https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?category=sharepoint

Or IIS fourms:

https://forums.iis.net/

Regards.


Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com


------------------------------------

Scheduled Task only fails to print when user not logged in

   

Setting the stage:
I am trying to print pdf reports to a networked printer from a scheduled task at 6am daily.  I have a Powershell 2.0 script on WIndows 2008 R2 that checks for a trigger file with a path to the folder the pdf reports are in and then iterates over the files looking for 3 specific files to print and then prints them to the default printer which is an installed network printer.  This task is set to run "whether the user is logged in or not" and is set "to run with the highest privileges".  It is set to run under a service account with admin access that was also the user that installed the printer.  The code used to print to the default printer is:

Start-Process -FilePath "$archivePath\$($pdf.Name)" -Verb Print  

The Problem:
The issue I am having is that the process only actually prints if the user is logged into the server.  Everything else works, the logging the opening of the pdf in adobe reader, everything.  It just will not send the report to the printer.  If I log in at 5:55am and watch the process and the print spooler I can see everything work, however if I log in at 6:01am I can see the processes running in task manager and track the log but the reports never get sent to the printer.
What I have tried:
I have tried to run this from a bat script that self elevated the powershell in the hopes it was a permission issue using:

SET PowerShellScriptPath=D:\Scripts\Print_HFM_Reports.ps1START /WAIT PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& {Start-Process PowerShell -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File "%PowerShellScriptPath%"' -Verb RunAs}";

I am not sure what else to check or change.  I am not getting any errors in the event viewer or anywhere else.  The Print just doesn't work and right now my only option is to get up at 5:45 and log in.
  • Edited by sgalante Tuesday, April 7, 2015 12:51 PM Added OS info

Reply:

That is correct. Shell verbs require a full user interactive session.  You will need to use direct Adobe automation too print a PDF. Post in Adobe forum to learn how to use Reader to print from a script.


\_(ツ)_/


  • Edited by jrv Tuesday, April 7, 2015 3:00 PM

------------------------------------
Reply:
Based on all the searching I have done, this should work for Adobe reader 9.5 and all I can find reference to is a "Session 0" issue.  I have not been able to find anything that would ensure printing via a scheduled task without the user actually logged in will work.  Does the "RunAs" verb in Powershell not load the specified profile?  Is there a registry setting that sets the default printer to a specific printer for "All" users on a machine?  I am just not sure what to try at this point I have been trying to find a solution for over 3 months and directing me to Adobe forums was...less then helpful.  I looked everywhere I thought I could find an answer and tried all that made sense.  Posting was a last resort. 

------------------------------------
Reply:

Here is how to print "headless" from reader: http://stackoverflow.com/questions/619158/adobe-reader-command-line-reference


\_(ツ)_/


------------------------------------
Reply:

Here is a C# class that can automate this for you.

http://www.codeproject.com/Tips/598424/How-to-Silently-Print-PDFs-using-Adobe-Reader-and


\_(ツ)_/


------------------------------------
Reply:

I will give these a try thank you.  I have been trying your first recommendation with regard to the command line call for Adobe and was trying to call it from the Powershell script I have in place now with:

$command = "AcroRd32.exe /N /T $archivePath\$($pdf.Name) \\<printServer>\<printerName>"  & $command "$archivePath\$($pdf.Name)"

But this just hangs with the Adobe screen open and will not continue past the "&" call until the Adobe window is closed.  I am not able to stack command line calls and exit it or call an exit after the initial Powershell call to the "&" call.  I have tried including "cmd.exe /C" before all of it and it does not matter.  Any suggestions?


------------------------------------
Reply:

It works fine for me but you have to use the local name and not the UNC:

$arlist=@(   '/N',   '/T c:\temp3\f1040.pdf',    'HP LaserJet Professional P 1102w'  )  $acro="${env:ProgramFiles(x86)}\adobe\reader 11.0\Reader\acrord32.exe"    Start-Process -FilePath $acro -ArgumentList   


\_(ツ)_/


------------------------------------
Reply:
Using your argument list convention I was able to get the process to run but I still had to use the UNC.  Without it I would constantly get a "File not found" issue in Adobe.  Thanks for the guidance.

------------------------------------
Reply:
Have you achieved the silent printing to work using the Printer UNC. Please kindly explain..

------------------------------------

BSOD Unknown cause

I have a dump file generated by a server that encountered a blue screen.

I see the following errors in the event log:

Error Event ID 6008 "The previous system shutdown at 4:21:28 AM on 6/9/2015 was unexpected."

Critical Event ID 41 "The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly."

Error Event ID 1001 "The computer has rebooted from a bugcheck.  The bugcheck was: 0x00000124 (0x0000000000000000, 0xfffffa800a62e038, 0x0000000000000000, 0x0000000000000000). A dump was saved in: C:\Windows\Minidump\060915-24913-01.dmp. Report Id: 060915-24913-01."

Error Event ID 1500 "The SNMP Service encountered an error while accessing the registry key SYSTEM\CurrentControlSet\Services\SNMP\Parameters\TrapConfiguration."

Error Event ID 7026

"The following boot-start or system-start driver(s) failed to load: 
ClusDisk"

Error Event ID 18

"A fatal hardware error has occurred.

Reported by component: Processor Core
Error Source: Machine Check Exception
Error Type: Internal Timer Error
Processor ID: 0

The details view of this entry contains further information."

Here is a link to the dump file: https://onedrive.live.com/redir?resid=A4C0CA009AA14F65!109&authkey=!AImteEv0JAXxu_k&ithint=file%2czip

No changes have been made to the system recently.


  • Changed type Vivian_Wang Thursday, June 25, 2015 3:41 AM

Reply:

This one may help.

https://msdn.microsoft.com/en-us/library/windows/hardware/ff557321(v=vs.85).aspx

If it continues to happen I'd get in touch with the hardware manufacturer.

 

 

 


Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]

Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.


------------------------------------
Reply:

5 days later I had the same issue.

Here's the dump file: https://onedrive.live.com/redir?resid=A4C0CA009AA14F65!110&authkey=!AP1c-iA94vV-i0k&ithint=file%2czip

The hardware is out of warranty. I just want to know what the problem is so that I can fix it.


------------------------------------
Reply:

You'll need to ask the hardware vendor.

 

 


Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]

Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.


------------------------------------

No comments:

Post a Comment

Setup is Split Across Multiple CDs

Setup is Split Across Multiple CDs Lately I've seen a bunch of people hitting installation errors that have to do with the fact th...